47#if !defined(MRC_DEPRECATED) && !defined(MRC_DEPRECATED_REASON)
48# if defined(__cplusplus)
49# ifdef __has_cpp_attribute
50# if __has_cpp_attribute(deprecated)
51# define MRC_DEPRECATED [[deprecated]]
53# define MRC_DEPRECATED_REASON(str) [[deprecated("is deprecated: " str)]]
55# define MRC_DEPRECATED_REASON(str) [[deprecated(str)]]
59# elif defined(_MSC_VER)
60# if _MSC_VER >= 1937 && __STDC_VERSION__ >= 202312
61# define MRC_DEPRECATED [[deprecated]]
62# define MRC_DEPRECATED_REASON(str) [[deprecated("is deprecated: " str)]]
64# define MRC_DEPRECATED __declspec(deprecated)
65# define MRC_DEPRECATED_REASON(str) __declspec(deprecated("is deprecated: " str))
68# if defined(__has_c_attribute) && (__STDC_VERSION__ >= 202311 || !defined(__GNUC__))
69# if __has_c_attribute(deprecated)
70# define MRC_DEPRECATED [[deprecated]]
71# define MRC_DEPRECATED_REASON(str) [[deprecated(str)]]
74# if !defined(MRC_DEPRECATED) && defined(__GNUC__)
75# define MRC_DEPRECATED __attribute__((__deprecated__))
76# define MRC_DEPRECATED_REASON(str) __attribute__((__deprecated__(str)))
79# ifndef MRC_DEPRECATED
80# define MRC_DEPRECATED
82# ifndef MRC_DEPRECATED_REASON
83# 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...
int64_t MR_int64_t
Definition common.h:17
MR_PassBy
Definition common.h:23
@ MR_PassBy_NoObject
Definition common.h:28
@ MR_PassBy_DefaultConstruct
Definition common.h:24
@ MR_PassBy_DefaultArgument
Definition common.h:27
@ MR_PassBy_Move
Definition common.h:26
@ MR_PassBy_Copy
Definition common.h:25
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...
uint64_t MR_uint64_t
Definition common.h:18
#define MRC_API
Definition exports.h:11