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

Method PushFixCSFunction

Assets/XLua/Src/ObjectTranslator.cs:1385–1397  ·  view source on GitHub ↗
(RealStatePtr L, LuaCSFunction func)

Source from the content-addressed store, hash-verified

1383 }
1384
1385 internal void PushFixCSFunction(RealStatePtr L, LuaCSFunction func)
1386 {
1387 if (func == null)
1388 {
1389 LuaAPI.lua_pushnil(L);
1390 }
1391 else
1392 {
1393 LuaAPI.xlua_pushinteger(L, fix_cs_functions.Count);
1394 fix_cs_functions.Add(func);
1395 LuaAPI.lua_pushstdcallcfunction(L, metaFunctions.FixCSFunctionWraper, 1);
1396 }
1397 }
1398
1399#if GEN_CODE_MINIMIZE
1400 CSharpWrapper[] csharpWrapper = new CSharpWrapper[0];

Callers 5

makeReflectionWrapMethod · 0.80
LazyReflectionCallMethod · 0.80
ReflectionWrapMethod · 0.80
ToFunctionFunction · 0.80
GenericMethodWraperFunction · 0.80

Calls 4

lua_pushnilMethod · 0.80
xlua_pushintegerMethod · 0.80
AddMethod · 0.45

Tested by

no test coverage detected