Advertisement
Guest User

Untitled

a guest
Feb 24th, 2018
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. void lua_setfield(lua_State *L, int index, const char *k)
  2. {
  3.     if (lua_iscfunction(L, -1))
  4.     {
  5.             o_lua_pushcclosure(myluastate,lua_tocfunction(L,-1),0);
  6.                 o_lua_setfield(myluastate,k);
  7.  
  8.     }
  9.     if (strcmp("Msg", k) == 0)
  10.     {
  11.         printf("-- myluastate -- \n");
  12.     }
  13.     o_lua_setfield(L, index, k);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement