blueloveTH 1 år sedan
förälder
incheckning
c044f5dd65
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      include/pocketpy/common/utils.h

+ 1 - 1
include/pocketpy/common/utils.h

@@ -51,6 +51,6 @@ typedef struct RefCounted {
 // static assert
 #ifndef __cplusplus
     #ifndef static_assert
-        #define static_assert(x, msg) if(!(x)) c11__abort(msg)
+        #define static_assert(x, msg) if(!(x)) c11__abort("static_assert failed: %s", msg)
     #endif
 #endif