Permalink
Browse files

Fixing typo in LOG_C_MACRO definition.

  • Loading branch information...
1 parent 673f835 commit b3f7cb154e4669c1441a229e75d84e957a56aa50 @robbiehanson robbiehanson committed May 13, 2011
View
@@ -150,7 +150,7 @@
#define LOG_OBJC_MACRO(sync, lvl, flg, ctx, frmt, ...) \
LOG_MACRO(sync, lvl, flg, ctx, sel_getName(_cmd), frmt, ##__VA_ARGS__)
-#define LOG_C_MACRO(sync, lvl, flag, ctx, frmt, ...) \
+#define LOG_C_MACRO(sync, lvl, flg, ctx, frmt, ...) \
LOG_MACRO(sync, lvl, flg, ctx, __FUNCTION__, frmt, ##__VA_ARGS__)
#define SYNC_LOG_OBJC_MACRO(lvl, flg, ctx, frmt, ...) \
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+ version = "1.0">
+ <FileRef
+ location = "self:GlobalLogLevel.xcodeproj">
+ </FileRef>
+</Workspace>
@@ -9,6 +9,14 @@ @implementation GlobalLogLevelAppDelegate
@synthesize window;
+void someFunction()
+{
+ DDLogCError(@"%@: C_Error", THIS_FILE);
+ DDLogCWarn(@"%@: C_Warn", THIS_FILE);
+ DDLogCInfo(@"%@: C_Info", THIS_FILE);
+ DDLogCVerbose(@"%@: C_Verbose", THIS_FILE);
+}
+
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
ddLogLevel = LOG_LEVEL_VERBOSE;
@@ -19,6 +27,8 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification
DDLogInfo(@"%@: Info", THIS_FILE);
DDLogVerbose(@"%@: Verbose", THIS_FILE);
+ someFunction();
+
ddLogLevel = LOG_LEVEL_WARN;
[Stuff doStuff];

0 comments on commit b3f7cb1

Please sign in to comment.