lua:lua
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
lua:lua [2008/09/01 14:36] – created deva | lua:lua [2008/09/01 15:42] – deva | ||
---|---|---|---|
Line 8: | Line 8: | ||
<code c> | <code c> | ||
lua_createtable(L, | lua_createtable(L, | ||
+ | int top = lua_gettop(L); | ||
+ | // add ' | ||
lua_pushinteger(L, | lua_pushinteger(L, | ||
+ | lua_rawseti(L, | ||
+ | // add ' | ||
lua_pushinteger(L, | lua_pushinteger(L, | ||
+ | lua_rawseti(L, | ||
+ | // add ' | ||
lua_pushinteger(L, | lua_pushinteger(L, | ||
- | lua_rawset(L, -3); | + | lua_rawseti(L, top, 2); |
+ | |||
+ | // and then some code to bind it to " | ||
</ | </ |
lua/lua.txt · Last modified: 2012/04/20 13:53 by deva