About b2assert. I use prinf because it worked. With luaL_error or dmLogError i have problems
If someone with c++ experience look on it, and help it will be awesome, i have no ideas:) @Mathias_Westerdahl
1)I try to replace it to luaL_error but nothing happened.
#define b2Assert(expr) \
( (expr)? (void)0 : (void) luaL_error(box2dDefoldNE::GLOBAL_L,"[ERROR]b2Assert. Expr:%s\n",#expr) )
2)I try to replace it to dmLogError but get compilation error.
#define b2Assert(expr) \
( (expr)? (void)0 : (void)dmLogError("[ERROR]b2Assert. Expr:%s\n",#expr) )
/box2d/native/include/b2_island.h
Line 58: In file included from upload/box2d/native/src/dynamics/b2_island.cpp:32:
unexpected ';' before ')'
b2Assert(m_bodyCount < m_bodyCapacity);
^