lua.cfg: Add some functions/macros, partly found by daca@home
This commit is contained in:
parent
06ba93b84a
commit
28e3e01ff8
67
cfg/lua.cfg
67
cfg/lua.cfg
|
@ -9,6 +9,8 @@
|
||||||
<podtype name="lua_Integer" sign="s"/>
|
<podtype name="lua_Integer" sign="s"/>
|
||||||
<!-- https://www.lua.org/manual/5.3/manual.html#lua_Unsigned -->
|
<!-- https://www.lua.org/manual/5.3/manual.html#lua_Unsigned -->
|
||||||
<podtype name="lua_Unsigned" sign="u"/>
|
<podtype name="lua_Unsigned" sign="u"/>
|
||||||
|
<!-- ########## Lua C API Defines / Macros ########## -->
|
||||||
|
<define name="define lua_setglobal(L,s)" value="lua_setfield(L, LUA_GLOBALSINDEX, s)"/>
|
||||||
<!-- ########## Lua C API Functions ########## -->
|
<!-- ########## Lua C API Functions ########## -->
|
||||||
<!-- int lua_error (lua_State *L); -->
|
<!-- int lua_error (lua_State *L); -->
|
||||||
<function name="lua_error">
|
<function name="lua_error">
|
||||||
|
@ -188,6 +190,47 @@
|
||||||
<not-bool/>
|
<not-bool/>
|
||||||
</arg>
|
</arg>
|
||||||
</function>
|
</function>
|
||||||
|
<!-- int lua_rawequal (lua_State *L, int index1, int index2); -->
|
||||||
|
<function name="lua_rawequal">
|
||||||
|
<noreturn>false</noreturn>
|
||||||
|
<returnValue type="int"/>
|
||||||
|
<use-retval/>
|
||||||
|
<leak-ignore/>
|
||||||
|
<arg nr="1"/>
|
||||||
|
<arg nr="2" direction="in">
|
||||||
|
<not-uninit/>
|
||||||
|
</arg>
|
||||||
|
<arg nr="3" direction="in">
|
||||||
|
<not-uninit/>
|
||||||
|
<not-bool/>
|
||||||
|
</arg>
|
||||||
|
</function>
|
||||||
|
<!-- void lua_rawgeti (lua_State *L, int index, int n); -->
|
||||||
|
<function name="lua_rawgeti">
|
||||||
|
<noreturn>false</noreturn>
|
||||||
|
<returnValue type="void"/>
|
||||||
|
<leak-ignore/>
|
||||||
|
<arg nr="1"/>
|
||||||
|
<arg nr="2" direction="in">
|
||||||
|
<not-uninit/>
|
||||||
|
</arg>
|
||||||
|
<arg nr="3" direction="in">
|
||||||
|
<not-uninit/>
|
||||||
|
</arg>
|
||||||
|
</function>
|
||||||
|
<!-- void lua_setfield (lua_State *L, int index, const char *k); -->
|
||||||
|
<function name="lua_setfield">
|
||||||
|
<noreturn>false</noreturn>
|
||||||
|
<returnValue type="void"/>
|
||||||
|
<leak-ignore/>
|
||||||
|
<arg nr="1"/>
|
||||||
|
<arg nr="2" direction="in">
|
||||||
|
<not-uninit/>
|
||||||
|
</arg>
|
||||||
|
<arg nr="3" direction="in">
|
||||||
|
<not-uninit/>
|
||||||
|
</arg>
|
||||||
|
</function>
|
||||||
<!-- const char *lua_tolstring (lua_State *L, int index, size_t *len); -->
|
<!-- const char *lua_tolstring (lua_State *L, int index, size_t *len); -->
|
||||||
<function name="lua_tolstring">
|
<function name="lua_tolstring">
|
||||||
<noreturn>false</noreturn>
|
<noreturn>false</noreturn>
|
||||||
|
@ -234,6 +277,30 @@
|
||||||
<not-bool/>
|
<not-bool/>
|
||||||
</arg>
|
</arg>
|
||||||
</function>
|
</function>
|
||||||
|
<!-- int lua_type (lua_State *L, int index); -->
|
||||||
|
<function name="lua_type">
|
||||||
|
<noreturn>false</noreturn>
|
||||||
|
<returnValue type="int"/>
|
||||||
|
<use-retval/>
|
||||||
|
<leak-ignore/>
|
||||||
|
<arg nr="1"/>
|
||||||
|
<arg nr="2" direction="in">
|
||||||
|
<not-uninit/>
|
||||||
|
<not-bool/>
|
||||||
|
</arg>
|
||||||
|
</function>
|
||||||
|
<!-- const char *lua_typename (lua_State *L, int tp); -->
|
||||||
|
<function name="lua_typename">
|
||||||
|
<noreturn>false</noreturn>
|
||||||
|
<returnValue type="const char *"/>
|
||||||
|
<use-retval/>
|
||||||
|
<leak-ignore/>
|
||||||
|
<arg nr="1"/>
|
||||||
|
<arg nr="2" direction="in">
|
||||||
|
<not-uninit/>
|
||||||
|
<not-bool/>
|
||||||
|
</arg>
|
||||||
|
</function>
|
||||||
<!-- int luaL_error (lua_State *L, const char *fmt, ...); -->
|
<!-- int luaL_error (lua_State *L, const char *fmt, ...); -->
|
||||||
<function name="luaL_error">
|
<function name="luaL_error">
|
||||||
<noreturn>true</noreturn>
|
<noreturn>true</noreturn>
|
||||||
|
|
Loading…
Reference in New Issue