Created
October 1, 2012 16:09
-
-
Save C4Code/3812747 to your computer and use it in GitHub Desktop.
Basic debugging (formatting for C4Log / NSLog)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// C4WorkSpace.m | |
// debugging | |
// | |
// Created by moi on 12-10-01. | |
// Copyright (c) 2012 moi. All rights reserved. | |
// | |
#import "C4WorkSpace.h" | |
@implementation C4WorkSpace | |
-(void)setup { | |
NSString *aString = @"a string"; | |
const char *cString = [aString UTF8String]; | |
C4Image *i = [C4Image imageNamed:@"C4Table.png"]; | |
C4Log(@"%c",cString[0]); | |
C4Log(@"%@",i); | |
C4Log(@"%@",aString); | |
C4Log(@"%f",0.1239048723140987109238470012); | |
C4Log(@"%4.20f",0.1239048723140987109238470012); | |
C4Log(@"%4.20f",0.1239048723140987109238470012f); | |
C4Log(@"%d",1); | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment