blueloveTH 1 год назад
Родитель
Сommit
c044f5dd65
1 измененных файлов с 1 добавлено и 1 удалено
  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