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

Method popValues

Assets/XLua/Src/ObjectTranslator.cs:1443–1460  ·  view source on GitHub ↗
(RealStatePtr L,int oldTop)

Source from the content-addressed store, hash-verified

1441#endif
1442
1443 internal object[] popValues(RealStatePtr L,int oldTop)
1444 {
1445 int newTop=LuaAPI.lua_gettop(L);
1446 if(oldTop==newTop)
1447 {
1448 return null;
1449 }
1450 else
1451 {
1452 ArrayList returnValues=new ArrayList();
1453 for(int i=oldTop+1;i<=newTop;i++)
1454 {
1455 returnValues.Add(GetObject(L,i));
1456 }
1457 LuaAPI.lua_settop(L,oldTop);
1458 return returnValues.ToArray();
1459 }
1460 }
1461
1462 internal object[] popValues(RealStatePtr L,int oldTop,Type[] popTypes)
1463 {

Callers 2

LuaEnv.csFile · 0.80
LuaFunction.csFile · 0.80

Calls 3

lua_gettopMethod · 0.80
lua_settopMethod · 0.80
AddMethod · 0.45

Tested by

no test coverage detected