MCPcopy Create free account
hub / github.com/Tencent/xLua / Remove

Method Remove

Assets/XLua/Src/ObjectTranslatorPool.cs:89–111  ·  view source on GitHub ↗
(RealStatePtr L)

Source from the content-addressed store, hash-verified

87 }
88
89 public void Remove (RealStatePtr L)
90 {
91#if THREAD_SAFE || HOTFIX_ENABLE
92 lock (this)
93#endif
94 {
95#if SINGLE_ENV
96 lastTranslator = default(ObjectTranslator);
97#else
98 var ptr = LuaAPI.xlua_gl(L);
99 if (!translators.ContainsKey (ptr))
100 return;
101
102 if (lastPtr == ptr)
103 {
104 lastPtr = default(RealStatePtr);
105 lastTranslator = default(ObjectTranslator);
106 }
107
108 translators.Remove(ptr);
109#endif
110 }
111 }
112 }
113}
114

Callers

nothing calls this directly

Calls 1

xlua_glMethod · 0.80

Tested by

no test coverage detected