From 65d74bdb26af833b5380046dec204f685f745cc1 Mon Sep 17 00:00:00 2001 From: Omniscient Date: Thu, 11 Jul 2024 18:03:29 +1000 Subject: changing styles plus simplifying a bit --- src/defines.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/defines.h') 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 -- cgit v1.2.3-70-g09d2