public static void RegisterLuaFunc(string funcname, LuaCFunction funccallback) { LuaAPI.RegisterLuaFunc(LuaEnv.L, funcname, Marshal.GetFunctionPointerForDelegate(funccallback)); }