diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-06-24 12:00:22 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-06-24 12:06:12 -0400 |
commit | 5c3572dc323527a5c168cc12a31b730e0749002d (patch) | |
tree | 9430894bcd1759823b956515b8397294f984c1f5 /src/diag.h | |
parent | 93749993508eaa9035dbcb005f960bc0b64752f0 (diff) | |
download | bfs-5c3572dc323527a5c168cc12a31b730e0749002d.tar.xz |
Unify macro naming conventions
In particular, macros that decide whether to use a particular API/
dependency should be spelled BFS_USE_*, and should be configurable.
Diffstat (limited to 'src/diag.h')
-rw-r--r-- | src/diag.h | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -18,8 +18,8 @@ #if __STDC_VERSION__ >= 202311L # define bfs_static_assert static_assert #else -# define bfs_static_assert(...) BFS_STATIC_ASSERT(__VA_ARGS__, #__VA_ARGS__, ) -# define BFS_STATIC_ASSERT(expr, msg, ...) _Static_assert(expr, msg) +# define bfs_static_assert(...) bfs_static_assert_(__VA_ARGS__, #__VA_ARGS__, ) +# define bfs_static_assert_(expr, msg, ...) _Static_assert(expr, msg) #endif /** @@ -62,8 +62,6 @@ noreturn void bfs_abortf(const struct bfs_loc *loc, const char *format, ...); # define bfs_bug bfs_abort #endif - - /** * Unconditional assert. */ |