mirror of
https://github.com/jorisvink/kore
synced 2025-03-09 04:29:02 -04:00
cleanup
This commit is contained in:
parent
3e944e106b
commit
13f9921679
25
src/lua.c
25
src/lua.c
@ -67,8 +67,6 @@ static void lua_symbol_resolve(struct lua_symbol *, lua_State **);
|
||||
|
||||
static int lua_argument_get_bool(lua_State *, const char *);
|
||||
static const char *lua_argument_get_string(lua_State *, const char *);
|
||||
//static int lua_argument_get_integer(lua_State *, const char *,
|
||||
// lua_Integer *);
|
||||
|
||||
struct kore_module_functions kore_lua_module = {
|
||||
.free = lua_module_free,
|
||||
@ -143,29 +141,6 @@ lua_symbol_resolve(struct lua_symbol *sym, lua_State **L)
|
||||
*L = sym->L;
|
||||
}
|
||||
|
||||
#if 0
|
||||
static int
|
||||
lua_argument_get_integer(lua_State *L, const char *field, lua_Integer *ret)
|
||||
{
|
||||
int type;
|
||||
|
||||
lua_pushstring(L, field);
|
||||
type = lua_gettable(L, -2);
|
||||
|
||||
if (type == LUA_TNIL) {
|
||||
lua_pop(L, 1);
|
||||
return (KORE_RESULT_ERROR);
|
||||
}
|
||||
|
||||
luaL_argcheck(L, type == LUA_TNUMBER, 0, field);
|
||||
|
||||
*ret = lua_tointeger(L, -1);
|
||||
lua_pop(L, 1);
|
||||
|
||||
return (KORE_RESULT_OK);
|
||||
}
|
||||
#endif
|
||||
|
||||
static int
|
||||
lua_argument_get_bool(lua_State *L, const char *field)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user