From 449da90daa69ab29d8343d6792f617184a6cdd54 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Thu, 21 Aug 2025 16:04:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20`xy=5Fdeveloper=5Fmistake(?= =?UTF-8?q?)`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/xy.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/xy.h b/lib/xy.h index ea1dc32..edda060 100644 --- a/lib/xy.h +++ b/lib/xy.h @@ -96,7 +96,9 @@ char *xy_os_devnull = NULL; #define xy_unimplemented() assert(!"Unimplemented temporarily") #define xy_unreached() assert(!"This code shouldn't be reached") #define xy_noop() (void)0 -#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") +#define xy_developer_mistake(reason) assert(!reason) + static void _xy_print_int (int n) {printf ("%d", n);} static void _xy_print_long (long n) {printf ("%ld", n);}