static int Speak(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); MyTest.Test2 obj = (MyTest.Test2)ToLua.CheckObject <MyTest.Test2>(L, 1); string arg0 = ToLua.CheckString(L, 2); obj.Speak(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int _CreateMyTest_Test2(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { MyTest.Test2 obj = new MyTest.Test2(); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: MyTest.Test2.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }