diff options
author | Omniscient <omniscient.oce@gmail.com> | 2024-07-11 18:03:29 +1000 |
---|---|---|
committer | Omniscient <omniscient.oce@gmail.com> | 2024-07-11 18:03:29 +1000 |
commit | 65d74bdb26af833b5380046dec204f685f745cc1 (patch) | |
tree | 6a913e8b47787fff9f4650963074ea3f8ab5de27 /src/defines.h | |
parent | 3103f383751a12f8a0bdb22309704f1f826d204c (diff) |
changing styles plus simplifying a bit
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 |