diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-05-28 15:42:26 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-05-28 15:42:26 +0200 |
| commit | 28ad019d62583b7e89b4e76922aa73857d5876eb (patch) | |
| tree | 1a103ea701eb013785f1d0fa45f450d6a16b6d78 /src/cube.c | |
| parent | 49b9c4a516f72e03d53277075f4580e2df8f0e63 (diff) | |
| download | nissy-core-28ad019d62583b7e89b4e76922aa73857d5876eb.tar.gz nissy-core-28ad019d62583b7e89b4e76922aa73857d5876eb.zip | |
Added roadmap for refactor and some simple routines
Diffstat (limited to 'src/cube.c')
| -rw-r--r-- | src/cube.c | 6 |
1 files changed, 2 insertions, 4 deletions
| @@ -9,10 +9,8 @@ | |||
| 9 | #define DBG_LOG(...) fprintf(stderr, __VA_ARGS__) | 9 | #define DBG_LOG(...) fprintf(stderr, __VA_ARGS__) |
| 10 | #define DBG_WARN(condition, ...) if (!(condition)) DBG_LOG(__VA_ARGS__); | 10 | #define DBG_WARN(condition, ...) if (!(condition)) DBG_LOG(__VA_ARGS__); |
| 11 | #define DBG_ASSERT(condition, retval, ...) \ | 11 | #define DBG_ASSERT(condition, retval, ...) \ |
| 12 | if (!(condition)) { \ | 12 | if (!(condition)) { DBG_LOG(__VA_ARGS__); return retval; } |
| 13 | DBG_LOG(__VA_ARGS__); \ | 13 | |
| 14 | return retval; \ | ||
| 15 | } | ||
| 16 | #else | 14 | #else |
| 17 | #define _static static | 15 | #define _static static |
| 18 | #define _static_inline static inline | 16 | #define _static_inline static inline |
