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