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

Function CSharpWrapperCallerImpl

Assets/XLua/Src/StaticLuaCallbacks.cs:120–132  ·  view source on GitHub ↗
(RealStatePtr L, int funcidx, int top)

Source from the content-addressed store, hash-verified

118
119#if GEN_CODE_MINIMIZE
120 [MonoPInvokeCallback(typeof(LuaDLL.CSharpWrapperCaller))]
121 internal static int CSharpWrapperCallerImpl(RealStatePtr L, int funcidx, int top)
122 {
123 try
124 {
125 ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
126 return translator.CallCSharpWrapper(L, funcidx, top);
127 }
128 catch (Exception e)
129 {
130 return LuaAPI.luaL_error(L, "c# exception:" + e);
131 }
132 }
133#endif
134
135#if GEN_CODE_MINIMIZE

Callers

nothing calls this directly

Calls 3

FindMethod · 0.80
CallCSharpWrapperMethod · 0.80
luaL_errorMethod · 0.80

Tested by

no test coverage detected