38#if !defined(MRC_DEPRECATED) && !defined(MRC_DEPRECATED_REASON)
39# if defined(__cplusplus)
40# ifdef __has_cpp_attribute
41# if __has_cpp_attribute(deprecated)
42# define MRC_DEPRECATED [[deprecated]]
44# define MRC_DEPRECATED_REASON(str) [[deprecated("is deprecated: " str)]]
46# define MRC_DEPRECATED_REASON(str) [[deprecated(str)]]
50# elif defined(_MSC_VER)
51# if _MSC_VER >= 1937 && __STDC_VERSION__ >= 202312
52# define MRC_DEPRECATED [[deprecated]]
53# define MRC_DEPRECATED_REASON(str) [[deprecated("is deprecated: " str)]]
55# define MRC_DEPRECATED __declspec(deprecated)
56# define MRC_DEPRECATED_REASON(str) __declspec(deprecated("is deprecated: " str))
59# if defined(__has_c_attribute) && (__STDC_VERSION__ >= 202311 || !defined(__GNUC__))
60# if __has_c_attribute(deprecated)
61# define MRC_DEPRECATED [[deprecated]]
62# define MRC_DEPRECATED_REASON(str) [[deprecated(str)]]
65# if !defined(MRC_DEPRECATED) && defined(__GNUC__)
66# define MRC_DEPRECATED __attribute__((__deprecated__))
67# define MRC_DEPRECATED_REASON(str) __attribute__((__deprecated__(str)))
70# ifndef MRC_DEPRECATED
71# define MRC_DEPRECATED
73# ifndef MRC_DEPRECATED_REASON
74# define MRC_DEPRECATED_REASON(str) MRC_DEPRECATED
MRC_API void * MR_AllocArray(size_t num_bytes)
MRC_API void MR_FreeArray(void *ptr)
Deallocates memory that was previously allocated with MR_AllocArray(). Does nothing if the pointer is...
MR_PassBy
Definition common.h:13
@ MR_PassBy_NoObject
Definition common.h:19
@ MR_PassBy_DefaultConstruct
Definition common.h:14
@ MR_PassBy_MoveAndDestroy
Definition common.h:17
@ MR_PassBy_DefaultArgument
Definition common.h:18
@ MR_PassBy_Move
Definition common.h:16
@ MR_PassBy_Copy
Definition common.h:15
MRC_API void * MR_Alloc(size_t num_bytes)
Allocates n bytes of memory, which can then be freed using MR_Free().
MRC_API void MR_Free(void *ptr)
Deallocates memory that was previously allocated with MR_Alloc(). Does nothing if the pointer is null...
#define MRC_API
Definition include/MRCMisc/exports.h:11