Banjo API
0.0.1
C99 game development API
Loading...
Searching...
No Matches
assert.h
Go to the documentation of this file.
1
15
#ifndef BJ_ASSERT_H
16
#define BJ_ASSERT_H
17
18
#include <
banjo/api.h
>
19
#include <
banjo/log.h
>
20
#include <stdlib.h>
21
33
#ifdef BJ_BUILD_RELEASE
34
#define bj_assert(expr) ((void)0)
35
#else
36
#define bj_assert(expr) \
37
((expr) ? (void)0 : (bj_fatal("Assertion failed: %s", #expr), abort(), (void)0))
38
#endif
39
40
#endif
/* BJ_ASSERT_H */
api.h
General-purpose definitions for Banjo API.
log.h
Logging utility functions.
assert.h
Generated on
for Banjo API by
1.14.0