private int ctype(IntPtr luaState) { Type t = typeOf(luaState,1); if (t == null) { return pushError(luaState,"not a CLR class"); } pushObject(luaState,t,"luaNet_metatable"); return 1; }