Skip to content

Instantly share code, notes, and snippets.

View dystonie's full-sized avatar

Guido Ronchetti dystonie

View GitHub Profile
@dystonie
dystonie / Asset.c
Created August 20, 2012 12:40
DEBUG_LOG()
#import <stdio.h>
#import <stdarg.h>
int globalLevel = 50;
#define DEBUG_LOG(logLevel, format, ...) \
do { \
if ((logLevel) > globalLevel) printf((format), ##__VA_ARGS__); \
} while (0)