We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
xy_developer_mistake()
1 parent f7f5269 commit 449da90Copy full SHA for 449da90
lib/xy.h
@@ -96,7 +96,9 @@ char *xy_os_devnull = NULL;
96
#define xy_unimplemented() assert(!"Unimplemented temporarily")
97
#define xy_unreached() assert(!"This code shouldn't be reached")
98
#define xy_noop() (void)0
99
-#define xy_cant_be_null(p) if(!p) assert(!"This pointer can't be null")
+#define xy_cant_be_null(p) if(!p) assert(!"This pointer can't be null")
100
+#define xy_developer_mistake(reason) assert(!reason)
101
+
102
103
static void _xy_print_int (int n) {printf ("%d", n);}
104
static void _xy_print_long (long n) {printf ("%ld", n);}
0 commit comments