diff options
Diffstat (limited to 'src/defines.h')
-rw-r--r-- | src/defines.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/defines.h b/src/defines.h index a35dbf4..e0a7782 100644 --- a/src/defines.h +++ b/src/defines.h @@ -38,7 +38,7 @@ _Static_assert(sizeof(i64) == 8, "type i64 should be 8 byte"); _Static_assert(sizeof(f32) == 4, "type f32 should be 4 bytes"); _Static_assert(sizeof(f64) == 8, "type f64 should be 8 bytes"); -_Static_assert(sizeof(ptrdiff_t) == 8, ""); +_Static_assert(sizeof(ptrdiff_t) == 8, "type ptrdiff_t should be 8 bytes"); #define alignof(x) _Alignof(x) @@ -49,6 +49,10 @@ _Static_assert(sizeof(ptrdiff_t) == 8, ""); u32 raw; \ } +CORE_DEFINE_HANDLE(Handle); // Untyped handle that can be casted to a strongly typed resource handle + +#define PUB // For collecting public APIs to expose in an amalgamation header file + /* Possible platform defines: #define CEL_PLATFORM_LINUX 1 @@ -79,4 +83,4 @@ Renderer backend defines: #if defined(CEL_PLATFORM_MAC) // #define CEL_REND_BACKEND_METAL 1 #define CEL_REND_BACKEND_OPENGL 1 -#endif
\ No newline at end of file +#endif |