MCPcopy Create free account
hub / github.com/Tencent/xLua / FixCSFunction

Function FixCSFunction

Assets/XLua/Src/StaticLuaCallbacks.cs:103–117  ·  view source on GitHub ↗
(RealStatePtr L)

Source from the content-addressed store, hash-verified

101 }
102
103 [MonoPInvokeCallback(typeof(LuaCSFunction))]
104 static int FixCSFunction(RealStatePtr L)
105 {
106 try
107 {
108 ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
109 int idx = LuaAPI.xlua_tointeger(L, LuaAPI.xlua_upvalueindex(1));
110 LuaCSFunction func = (LuaCSFunction)translator.GetFixCSFunction(idx);
111 return func(L);
112 }
113 catch (Exception e)
114 {
115 return LuaAPI.luaL_error(L, "c# exception in FixCSFunction:" + e);
116 }
117 }
118
119#if GEN_CODE_MINIMIZE
120 [MonoPInvokeCallback(typeof(LuaDLL.CSharpWrapperCaller))]

Callers

nothing calls this directly

Calls 5

FindMethod · 0.80
xlua_tointegerMethod · 0.80
xlua_upvalueindexMethod · 0.80
GetFixCSFunctionMethod · 0.80
luaL_errorMethod · 0.80

Tested by

no test coverage detected