8: void lua_pushcclosure(lua_State* L, lua_CFunction fn, int n) 9: void lua_pushboolean(lua_State* L, int b) 10: void lua_pushlightuserdata(lua_State* L, void* p)
luafunc.Push(go); luafunc.PCall(); luafunc.EndPCall(); } ); } } 开发者ID:woshihuo12,项目名称:UnityHello,代码行数:18,代码来源:LuaBehaviour.cs 点赞2▼ void CallLuaFunction(LuaFunctionfunc){func.BeginPCall();func.Push(listener);func.PCall();func.EndPCall(); } 开发者ID:yuisunn,项目...
L.PushFunction(l => {//TODO Do test//l.UpvalueJoin(0, 0, 0, 0);return0; }); L.PCall(0,0,0); } } 开发者ID:ygrenier,项目名称:LuaN,代码行数:14,代码来源:LuaStateTest.cs 示例5: TestSetHook ▲点赞 1▼ publicvoidTestSetHook() { LuaState L =null; using (L =newLuaState()...
CLuaFunctionData D;boolsuccess=false;if(D.readDataFromLua(p,inArgs_SETGRIPPERGAP,inArgs_SETGRIPPERGAP[0],LUA_SETGRIPPERGAP_COMMAND)) {std::vector<CLuaFunctionDataItem>* inData=D.getInDataPtr();intk3Index=getK3IndexFromHandle(inData->at(0).intData[0]);intgap=inData->at(1).intData...