1
0

Compare commits

...

1 Commits

Author SHA1 Message Date
9529292821 add PushLuaFunction to functions 2025-08-01 20:52:52 -05:00

View File

@ -302,3 +302,8 @@ func (s *State) GetAllLuaFunctions(names ...string) (map[string]*LuaFunction, er
}
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))
}