common: Cleanup

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2025-06-20 10:23:08 +02:00
parent bf4dd4a1d0
commit 21784a36dd

View File

@ -12,16 +12,16 @@
///
#define MACSTD_NONCOPYABLE(C) \
private: \
C (_In_ const C &h) noexcept; \
C& operator=(_In_ const C &h) noexcept;
C (const C &h) noexcept; \
C& operator=(const C &h) noexcept;
///
/// Declares a class as non-movable
///
#define MACSTD_NONMOVABLE(C) \
private: \
C (_Inout_ C &&h) noexcept; \
C& operator=(_Inout_ C &&h) noexcept;
C (C &&h) noexcept; \
C& operator=(C &&h) noexcept;
///
/// 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] 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),
runtime_error(msg)
{}
@ -353,7 +353,7 @@ namespace macstd
/// \param[in] num Numeric error code
/// \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),
runtime_error(msg)
{}