|
| int | luaopen_th (lua_State *L) |
| |
| void | luaT_printvalue (lua_State *L, int idx) |
| |
| void | luaT_printstack (lua_State *L) |
| |
| void | luaT_printrawtable (lua_State *L, int idx) |
| |
| void | luaT_rotate (lua_State *L, int idx, int n) |
| | Lua 5.3 lua_rotate backported to 5.1+.
|
| |
| int | luaT_upvalueindex (int i) |
| |
| template<class Collection > |
| void | luaT_register (lua_State *L, const char *n, Collection &l) |
| | Compatibility function for Lua 5.1 luaL_register.
|
| |
| void | luaT_setfuncs (lua_State *L, const luaL_Reg *R) |
| | Register functions into the table on top of the stack.
|
| |
| void | luaT_pushcclosure (lua_State *L, lua_CFunction f, int nups) |
| |
| void | luaT_pushcfunction (lua_State *L, lua_CFunction f) |
| |
| int | luaT_cpcall (lua_State *L, lua_CFunction f, void *u) |
| |
| int | luaT_load (lua_State *L, lua_Reader r, void *d, const char *s, const char *m) |
| |
| int | luaT_resume (lua_State *L, lua_State *f, int n, int *nresults) |
| |
| template<typename T , typename... Ts> |
| T * | luaT_new (lua_State *L, Ts... args) |
| | Version of operator new which allocates into a Lua userdata.
|
| |
| const uint8_t * | luaT_checkfile (lua_State *L, int idx, size_t *pDataLen) |
| | Check that a Lua argument is a binary data blob.
|
| |
| const char * | luaT_checkstring (lua_State *L, int idx, size_t *pLength) |
| | Check that a Lua argument is a string or a proxied string.
|
| |
| void | luaT_pushcclosuretable (lua_State *L, lua_CFunction fn, int n) |
| | Push a C closure as a callable table.
|
| |
| void | luaT_setenvfield (lua_State *L, int index, const char *k) |
| | Set a field on the environment table of a value.
|
| |
| void | luaT_getenvfield (lua_State *L, int index, const char *k) |
| | Get a field from the environment table of a value.
|
| |
| template<class T , typename... Args> |
| T * | luaT_stdnew (lua_State *L, int mt_idx=luaT_environindex, bool env=false, Args &&... args) |
| |
| template<class T > |
| T * | luaT_testuserdata (lua_State *L, int idx, int mt_idx, bool required=true) |
| |
| template<class T > |
| T * | luaT_testuserdata (lua_State *L, int idx=1, bool required=true) |
| |
| template<class T , int mt> |
| int | luaT_stdgc (lua_State *L) |
| |
| void | luaT_execute (lua_State *L, const char *sLuaString) |
| |
| void | luaT_execute_loadstring (lua_State *L, const char *sLuaString) |
| |
| void | luaT_push (lua_State *L, lua_CFunction f) |
| |
| void | luaT_push (lua_State *L, int i) |
| |
| void | luaT_push (lua_State *L, const char *s) |
| |
| template<class T > |
| void | luaT_execute (lua_State *L, const char *sLuaString, T arg) |
| |
| template<class T1 , class T2 > |
| void | luaT_execute (lua_State *L, const char *sLuaString, T1 arg1, T2 arg2) |
| |
| template<class T1 , class T2 , class T3 > |
| void | luaT_execute (lua_State *L, const char *sLuaString, T1 arg1, T2 arg2, T3 arg3) |
| |
| template<class T1 , class T2 , class T3 , class T4 > |
| void | luaT_execute (lua_State *L, const char *sLuaString, T1 arg1, T2 arg2, T3 arg3, T4 arg4) |
| |
| void | luaT_pushtablebool (lua_State *L, const char *k, bool v) |
| |
| void | preload_lua_package (lua_State *L, const char *name, lua_CFunction fn) |
| |
| template<typename B , typename T1 , typename T2 > |
| B * | luaT_touserdata_base (lua_State *L, int idx, const std::initializer_list< const char * > &class_names) |
| |
Check that a Lua argument is a binary data blob.
If the given argument is a string or (full) userdata, then returns a pointer to the start of it, and the length of it. Otherwise, throws a Lua error.
Check that a Lua argument is a binary data blob.