Permalink
Browse files

Keep logging macros in StackMobConfiguration

  • Loading branch information...
1 parent 6bdfe52 commit 2bffb1531da23e4c1f07a316ceea15bd4e9e97be @drapp drapp committed Feb 22, 2012
Showing with 7 additions and 9 deletions.
  1. +7 −0 StackMob/StackMobConfiguration.h
  2. +0 −9 StackMobiOS_Prefix.pch
@@ -12,6 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+#if DEBUG
+#define SMLog(format, ...) {NSLog(format, ##__VA_ARGS__);}
+#define StackMobDebug(format, ...) {NSLog([[NSString stringWithFormat:@"[%s, %@, %d] ", __PRETTY_FUNCTION__, [[NSString stringWithUTF8String:__FILE__] lastPathComponent], __LINE__] stringByAppendingFormat:format, ##__VA_ARGS__]);}
+#else
+#define SMLog(format, ...)
+#define StackMobDebug(format, ...)
+#endif
#define STACKMOB_PUBLIC_KEY @"YOUR_PUBLIC_KEY"
#define STACKMOB_PRIVATE_KEY @"YOUR_PRIVATE_KEY"
View
@@ -15,13 +15,4 @@
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#import "StackMobAdditions.h"
-
-#if DEBUG
- #define SMLog(format, ...) {NSLog(format, ##__VA_ARGS__);}
- #define StackMobDebug(format, ...) {NSLog([[NSString stringWithFormat:@"[%s, %@, %d] ", __PRETTY_FUNCTION__, [[NSString stringWithUTF8String:__FILE__] lastPathComponent], __LINE__] stringByAppendingFormat:format, ##__VA_ARGS__]);}
-#else
- #define SMLog(format, ...)
- #define StackMobDebug(format, ...)
-#endif
-
#endif

0 comments on commit 2bffb15

Please sign in to comment.