add PushLuaFunction to functions
This commit is contained in:
parent
d2b65ffde4
commit
9529292821
@ -302,3 +302,8 @@ func (s *State) GetAllLuaFunctions(names ...string) (map[string]*LuaFunction, er
|
|||||||
}
|
}
|
||||||
return funcs, nil
|
return funcs, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// PushLuaFunction pushes a stored LuaFunction reference onto the stack
|
||||||
|
func (s *State) PushLuaFunction(lf *LuaFunction) {
|
||||||
|
C.lua_rawgeti(s.L, C.LUA_REGISTRYINDEX, C.int(lf.ref))
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user