Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stackTrace(L);
- lua_newtable(L);
- for (int i = 1; i <= 5; i++)
- {
- lua_pushnumber(L, i); /* Push the table index */
- lua_pushnumber(L, i*2); /* Push the cell value */
- lua_rawset(L, -3); /* Stores the pair in the table */
- }
- stackTrace(L);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement