mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
lua suppliers update + label supplier XML attribute
This commit is contained in:
parent
d5c39a05fb
commit
f89c252ddf
4 changed files with 30 additions and 4 deletions
|
|
@ -247,6 +247,14 @@ const char* lua::LuaState::tostring(int idx) {
|
|||
return lua_tostring(L, idx);
|
||||
}
|
||||
|
||||
bool lua::LuaState::isstring(int idx) {
|
||||
return lua_isstring(L, idx);
|
||||
}
|
||||
|
||||
bool lua::LuaState::isfunction(int idx) {
|
||||
return lua_isfunction(L, idx);
|
||||
}
|
||||
|
||||
void lua::LuaState::openlib(const std::string& name, const luaL_Reg* libfuncs, int nup) {
|
||||
lua_newtable(L);
|
||||
luaL_setfuncs(L, libfuncs, nup);
|
||||
|
|
|
|||
|
|
@ -45,6 +45,8 @@ namespace lua {
|
|||
luaint tointeger(int idx);
|
||||
luanumber tonumber(int idx);
|
||||
const char* tostring(int idx);
|
||||
bool isstring(int idx);
|
||||
bool isfunction(int idx);
|
||||
int call(int argc);
|
||||
int callNoThrow(int argc);
|
||||
int execute(int env, const std::string& src, const std::string& file="<string>");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue