3.3.3 – Assignment Lua allows multiple assignments. Therefore, the syntax for assignment defines a list of variables on the left side and a list of expressions on the right side. The elements
luaL_optstring[-0, +0, v] const char *luaL_optstring (lua_State *L, int arg
file:seek ([whence [, offset]]) Sets and gets the file position, measured from the beginning of the file, to the position given by offset plus a base specified by
lua_gethookcount[-0, +0, –] int lua_gethookcount (lua_State *L); Returns the current hook count.
luaL_checknumber[-0, +0, v] lua_Number luaL_checknumber (lua_State *L, int arg); Checks whether
3.4.1 – Arithmetic Operators Lua supports the following arithmetic operators: +: addition -: subtraction *:
lua_Debug typedef struct lua_Debug { int event; const char *name; /* (n) */ const char *namewhat; /* (n) */ const char
3.4.9 – Table Constructors Table constructors are expressions that create tables. Every time a constructor is evaluated, a new table is created. A constructor can be used to create an empty
lua_callk[-(nargs + 1), +nresults, e] void lua_callk (lua_State *L, int nargs,
print (···)stdouttostringprint
Page 1 of 36