Merge branch 'master' of https://git.snarmph.win/snarmph/colla
This commit is contained in:
commit
603b5a4cb6
3 changed files with 10 additions and 0 deletions
8
colla.h
8
colla.h
|
|
@ -157,6 +157,13 @@ void colla_cleanup(void);
|
|||
#define GB(n) (((u64)n) << 30)
|
||||
#define TB(n) (((u64)n) << 40)
|
||||
|
||||
#if COLLA_WIN
|
||||
#define force_inline __forceinline
|
||||
#else
|
||||
// TODO
|
||||
#define force_inline inline
|
||||
#endif
|
||||
|
||||
#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(...) colla__assert(__FILE__, COLLA__STRINGIFY(__LINE__), __VA_ARGS__)
|
||||
|
|
@ -1453,3 +1460,4 @@ str_t pretty_print_get_stringv(arena_t *arena, const char *fmt, va_list args);
|
|||
usize pretty_print_get_length(strview_t view);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue