stoneharry

Untitled

Aug 26th, 2012
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. void report(lua_State* L)
  2. {
  3.     int count = lua_gettop(L);
  4.     /*if(count == 0)
  5.     {
  6.         ((void(*)())0)();
  7.         return;
  8.     }*/
  9.     while(count > 0)
  10.     {
  11.         const char* msg = lua_tostring(L, -1);
  12.         LOG_ERROR(msg);
  13.         lua_pop(L, 1);
  14.         count--;
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment