Commit 8c4aa75a authored by 余玠's avatar 余玠

debug macro specified

parent 15f91d63
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
} }
_existedID[vc.uniqueIDString] = vc.name; _existedID[vc.uniqueIDString] = vc.name;
} }
#if 1 #if DEBUG
[self dump:@"ADD"]; [self dump:@"ADD"];
#endif #endif
} }
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
[_existedID removeObjectForKey:vc.uniqueIDString]; [_existedID removeObjectForKey:vc.uniqueIDString];
[_idStk removeObject:vc.uniqueIDString]; [_idStk removeObject:vc.uniqueIDString];
} }
#if 1 #if DEBUG
[self dump:@"REMOVE"]; [self dump:@"REMOVE"];
#endif #endif
} }
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
return _idStk.lastObject; return _idStk.lastObject;
} }
#if 1 #if DEBUG
- (void)dump:(NSString*)flag{ - (void)dump:(NSString*)flag{
NSMutableString *log = [[NSMutableString alloc]initWithFormat:@"[DEBUG]--%@--PageStack uid/name", flag]; NSMutableString *log = [[NSMutableString alloc]initWithFormat:@"[DEBUG]--%@--PageStack uid/name", flag];
for(NSString *uid in _idStk){ for(NSString *uid in _idStk){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment