Banjo API
1.1.0-alpha
Low-level C99 game development API
Loading...
Searching...
No Matches
assert.h
Go to the documentation of this file.
1
16
#ifndef BJ_ASSERT_H
17
#define BJ_ASSERT_H
18
19
#include <
banjo/api.h
>
20
#include <
banjo/log.h
>
21
#include <stdlib.h>
22
34
#ifdef BJ_BUILD_RELEASE
35
#define bj_assert(expr) ((void)0)
36
#else
37
#define bj_assert(expr) \
38
((expr) ? (void)0 : (bj_fatal("Assertion failed: %s", #expr), abort(), (void)0))
39
#endif
40
41
#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