static int TestCheckParamString(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); TestExport obj = (TestExport)ToLua.CheckObject(L, 1, typeof(TestExport)); string[] arg0 = ToLua.CheckParamsString(L, 2, count - 1); string o = obj.TestCheckParamString(arg0); LuaDLL.lua_pushstring(L, o); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e); } }
private static int TestCheckParamString(IntPtr L) { int result; try { int num = LuaDLL.lua_gettop(L); TestExport testExport = (TestExport)ToLua.CheckObject(L, 1, typeof(TestExport)); string[] ss = ToLua.CheckParamsString(L, 2, num - 1); string str = testExport.TestCheckParamString(ss); LuaDLL.lua_pushstring(L, str); result = 1; } catch (Exception e) { result = LuaDLL.toluaL_exception(L, e, null); } return(result); }