static int ToString(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); Spine.Skin obj = (Spine.Skin)ToLua.CheckObject <Spine.Skin>(L, 1); string o = obj.ToString(); LuaDLL.lua_pushstring(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }