.
This commit is contained in:
parent
23bf010834
commit
e0dc93f61d
1 changed files with 7 additions and 0 deletions
7
colla.h
7
colla.h
|
|
@ -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__)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue