Kobold2D
1.1
Kobold2D API Reference (iOS version) for www.kobold2d.com developers
|
#import <Availability.h>
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "kkARCSupport.h"
Defines | |
#define | LOG_EXPR(_X_) |
#define LOG_EXPR | ( | _X_ | ) |
do{\ __typeof__(_X_) _Y_ = (_X_);\ const char * _TYPE_CODE_ = @encode(__typeof__(_X_));\ NSString *_STR_ = VTPG_DDToStringFromTypeAndValue(_TYPE_CODE_, &_Y_);\ if(_STR_)\ NSLog(@"%s = %@", #_X_, _STR_);\ else\ NSLog(@"Unknown _TYPE_CODE_: %s for expression %s in function %s, file %s, line %d", _TYPE_CODE_, #_X_, __func__, __FILE__, __LINE__);\ }while(0)
logs any variable, struct, array, etc. to the console without having to use formatted strings