Add size() method To ObjectCache class, used to help debug
using System.Runtime.CompilerServices;
+namespace LuaInterface
+{
+ public class TestClass { }
+}
namespace SLua
{
@@ -220,6 +224,11 @@ namespace SLua
oldoc = oc;
}
+ public int size()
+ {
+ return objMap.Count;
+ }
+
internal void gc(int index)
{
object o;
