]> granicus.if.org Git - nethack/commitdiff
fix syntax errors for libnethack.a
authorAdam Powers <apowers@ato.ms>
Sat, 29 Aug 2020 21:48:02 +0000 (14:48 -0700)
committerAdam Powers <apowers@ato.ms>
Sat, 29 Aug 2020 21:48:02 +0000 (14:48 -0700)
win/shim/winshim.c

index 9fed47d9c4eba71acad546fba73e9126d3ad9352..34bdccbaffba23bb8052acef0175f235f1afad4c 100644 (file)
@@ -59,8 +59,8 @@ void name fn_args { \
 #else /* !__EMSCRIPTEN__ */
 #define A2P
 #define P2V
-#define DECLCB(ret_type, name, args, fmt, ...) \
-ret_type name args { \
+#define DECLCB(ret_type, name, fn_args, fmt, ...) \
+ret_type name fn_args { \
     ret_type ret; \
     debugf("SHIM GRAPHICS: " #name "\n"); \
     if (!shim_graphics_callback) return; \
@@ -68,7 +68,8 @@ ret_type name args { \
     return ret; \
 }
 
-void name args { \
+#define VDECLCB(name, fn_args, fmt, ...) \
+void name fn_args { \
     debugf("SHIM GRAPHICS: " #name "\n"); \
     if (!shim_graphics_callback) return; \
     shim_graphics_callback(#name, NULL, fmt, __VA_ARGS__); \