lua_tointegerx[-0, +0, –] lua_Integer lua_tointegerx (lua_State *L, int index, int *isnum); Converts the
luaL_checkstring[-0, +0, v] const char *luaL_checkstring (lua_State *L, int arg); Checks whether
luaL_loadbuffer[-0, +1, –] int luaL_loadbuffer (lua_State *L, const char *buff,
lua_tointeger[-0, +0, –] lua_Integer lua_tointeger (lua_State *L, int index); Equivalent to
os.clock () Returns an approximation of the amount in seconds of CPU time used by the program.
lua_gettable[-1, +1, e] int lua_gettable (lua_State *L, int index); Pushes onto the stack the
luaL_addstring[-?, +?, m] void luaL_addstring (luaL_Buffer *B, const char *s); Adds the zero-terminated
lua_getstack[-0, +0, –] int lua_getstack (lua_State *L, int level, lua_Debug *ar); Gets information about
math.type (x) Returns "integer" if x is an integer, "float" if it is a float, or nil if x is not a number.
io.open (filename [, mode]) This function opens a file, in the mode specified in the string mode. In case of success, it returns a new file handle. The mode
Page 30 of 36