common: Cleanup
Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
parent
bf4dd4a1d0
commit
21784a36dd
@ -12,16 +12,16 @@
|
|||||||
///
|
///
|
||||||
#define MACSTD_NONCOPYABLE(C) \
|
#define MACSTD_NONCOPYABLE(C) \
|
||||||
private: \
|
private: \
|
||||||
C (_In_ const C &h) noexcept; \
|
C (const C &h) noexcept; \
|
||||||
C& operator=(_In_ const C &h) noexcept;
|
C& operator=(const C &h) noexcept;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Declares a class as non-movable
|
/// Declares a class as non-movable
|
||||||
///
|
///
|
||||||
#define MACSTD_NONMOVABLE(C) \
|
#define MACSTD_NONMOVABLE(C) \
|
||||||
private: \
|
private: \
|
||||||
C (_Inout_ C &&h) noexcept; \
|
C (C &&h) noexcept; \
|
||||||
C& operator=(_Inout_ C &&h) noexcept;
|
C& operator=(C &&h) noexcept;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Size of the stack buffer in bytes used for initial system function call
|
/// Size of the stack buffer in bytes used for initial system function call
|
||||||
@ -342,7 +342,7 @@ namespace macstd
|
|||||||
/// \param[in] num Numeric error code
|
/// \param[in] num Numeric error code
|
||||||
/// \param[in] msg Error message
|
/// \param[in] msg Error message
|
||||||
///
|
///
|
||||||
num_runtime_error(_In_ error_type num, _In_ const std::string& msg) :
|
num_runtime_error(error_type num, const std::string& msg) :
|
||||||
m_num(num),
|
m_num(num),
|
||||||
runtime_error(msg)
|
runtime_error(msg)
|
||||||
{}
|
{}
|
||||||
@ -353,7 +353,7 @@ namespace macstd
|
|||||||
/// \param[in] num Numeric error code
|
/// \param[in] num Numeric error code
|
||||||
/// \param[in] msg Error message
|
/// \param[in] msg Error message
|
||||||
///
|
///
|
||||||
num_runtime_error(_In_ error_type num, _In_z_ const char *msg) :
|
num_runtime_error(error_type num, _In_z_ const char *msg) :
|
||||||
m_num(num),
|
m_num(num),
|
||||||
runtime_error(msg)
|
runtime_error(msg)
|
||||||
{}
|
{}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user