예제 #1
0
        static int _m_RecycleCSharpObject(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.ObjCachePoolMgr __cl_gen_to_be_invoked = (xc.ObjCachePoolMgr)translator.FastGetCSObj(L, 1);


            try {
                {
                    object obj = translator.GetObject(L, 2, typeof(object));
                    xc.ObjCachePoolType poolType; translator.Get(L, 3, out poolType);
                    string poolKey = LuaAPI.lua_tostring(L, 4);

                    __cl_gen_to_be_invoked.RecycleCSharpObject(obj, poolType, poolKey);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }