(RealStatePtr L)
| 156 | } |
| 157 | |
| 158 | [MonoPInvokeCallback(typeof(LuaCSFunction))] |
| 159 | public static int LuaGC(RealStatePtr L) |
| 160 | { |
| 161 | try |
| 162 | { |
| 163 | int udata = LuaAPI.xlua_tocsobj_safe(L, 1); |
| 164 | if (udata != -1) |
| 165 | { |
| 166 | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| 167 | if ( translator != null ) |
| 168 | { |
| 169 | translator.collectObject(udata); |
| 170 | } |
| 171 | } |
| 172 | return 0; |
| 173 | } |
| 174 | catch (Exception e) |
| 175 | { |
| 176 | return LuaAPI.luaL_error(L, "c# exception in LuaGC:" + e); |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | [MonoPInvokeCallback(typeof(LuaCSFunction))] |
| 181 | public static int ToString(RealStatePtr L) |
nothing calls this directly
no test coverage detected