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

Method PushCSharpWrapper

Assets/XLua/Src/ObjectTranslator.cs:1428–1440  ·  view source on GitHub ↗
(RealStatePtr L, CSharpWrapper func)

Source from the content-addressed store, hash-verified

1426 }
1427
1428 internal void PushCSharpWrapper(RealStatePtr L, CSharpWrapper func)
1429 {
1430 if (func == null)
1431 {
1432 LuaAPI.lua_pushnil(L);
1433 }
1434 else
1435 {
1436 LuaAPI.xlua_push_csharp_wrapper(L, csharpWrapperSize);
1437 ensureCSharpWrapperCapacity(csharpWrapperSize + 1);
1438 csharpWrapper[csharpWrapperSize++] = func;
1439 }
1440 }
1441#endif
1442
1443 internal object[] popValues(RealStatePtr L,int oldTop)

Callers 3

EndObjectRegisterMethod · 0.80
RegisterFuncMethod · 0.80
BeginClassRegisterMethod · 0.80

Calls 2

lua_pushnilMethod · 0.80

Tested by

no test coverage detected