]> AND Public Git Repository - simgrid.git/blobdiff - src/bindings/lua/lua_private.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
enable remote copy and move for disks
[simgrid.git] / src / bindings / lua / lua_private.hpp
index 5a8e23512b334e1dc236c3f3cf3a6654faefa4ca..6893f5fab4a303b668821a22ec12e92bbc460ca9 100644 (file)
@@ -17,7 +17,7 @@ msg_host_t sglua_check_host(lua_State* L, int index);
 void sglua_register_platf_functions(lua_State* L);
 
 #define lua_ensure(...) _XBT_IF_ONE_ARG(_lua_ensure_ARG1, _lua_ensure_ARGN, __VA_ARGS__)(__VA_ARGS__)
-#define _lua_ensure_ARG1(cond) _lua_ensure_ARGN(cond, "Assertion %s failed", #cond)
+#define _lua_ensure_ARG1(cond) _lua_ensure_ARGN(cond, "Assertion " _XBT_STRINGIFY(cond) " failed")
 #define _lua_ensure_ARGN(cond, ...)                                                                                    \
   do {                                                                                                                 \
     if (!(cond)) {                                                                                                     \