static int _m_YieldAndCallback(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Coroutine_Runner __cl_gen_to_be_invoked = (Coroutine_Runner)translator.FastGetCSObj(L, 1); try { { object to_yield = translator.GetObject(L, 2, typeof(object)); System.Action callback = translator.GetDelegate<System.Action>(L, 3); __cl_gen_to_be_invoked.YieldAndCallback( to_yield, callback ); return 0; } } catch(System.Exception __gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + __gen_e); } }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { Coroutine_Runner gen_ret = new Coroutine_Runner(); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to Coroutine_Runner constructor!")); }