Advertisement
szpg1108

Untitled

Aug 16th, 2013
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. stackTrace(L);
  2.    
  3. lua_newtable(L);
  4.    
  5. for (int i = 1; i <= 5; i++)
  6. {
  7.     lua_pushnumber(L, i);   /* Push the table index */
  8.     lua_pushnumber(L, i*2); /* Push the cell value */
  9.     lua_rawset(L, -3);      /* Stores the pair in the table */
  10. }
  11.  
  12. stackTrace(L);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement