summaryrefslogtreecommitdiffstats
path: root/src/diag.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-08-27 15:59:57 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-08-28 17:33:20 -0400
commit386fc8817e637fdd52c20e4ace6cc4ea1f1186ed (patch)
treee9ff160e7e5cd21f4ee72b2822e33a921acb726f /src/diag.h
parenta37a564b66b363cc509cc5cdd16fd65b7950b0be (diff)
downloadbfs-386fc8817e637fdd52c20e4ace6cc4ea1f1186ed.tar.xz
diag: Get rid of bfs_static_assert()
In most cases, it's not too annoying to specify a message. For tests/bit.c, we can manually polyfill the 1-argument version.
Diffstat (limited to 'src/diag.h')
-rw-r--r--src/diag.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/diag.h b/src/diag.h
index d70bd43..a8e5a5c 100644
--- a/src/diag.h
+++ b/src/diag.h
@@ -13,16 +13,6 @@
#include <stdarg.h>
/**
- * static_assert() with an optional second argument.
- */
-#if __STDC_VERSION__ >= C23
-# 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)
-#endif
-
-/**
* A source code location.
*/
struct bfs_loc {