This commit is contained in:
alessandro bason 2026-03-04 16:50:47 +01:00
parent 23bf010834
commit e0dc93f61d

View file

@ -157,6 +157,13 @@ void colla_cleanup(void);
#define GB(n) (((u64)n) << 30) #define GB(n) (((u64)n) << 30)
#define TB(n) (((u64)n) << 40) #define TB(n) (((u64)n) << 40)
#if COLLA_WIN
#define force_inline __forceinline
#else
// TODO
#define force_inline inline
#endif
#if COLLA_DEBUG #if COLLA_DEBUG
#define colla__assert(file, line, cond, ...) do { if (!(cond)) fatal(file ":" line " ASSERT FAILED: (" COLLA__STRINGIFY(cond) ") " __VA_ARGS__); } while (0) #define colla__assert(file, line, cond, ...) do { if (!(cond)) fatal(file ":" line " ASSERT FAILED: (" COLLA__STRINGIFY(cond) ") " __VA_ARGS__); } while (0)
#define colla_assert(...) colla__assert(__FILE__, COLLA__STRINGIFY(__LINE__), __VA_ARGS__) #define colla_assert(...) colla__assert(__FILE__, COLLA__STRINGIFY(__LINE__), __VA_ARGS__)