Skip to content

Instantly share code, notes, and snippets.

@C4Code
Created October 1, 2012 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save C4Code/3812747 to your computer and use it in GitHub Desktop.
Save C4Code/3812747 to your computer and use it in GitHub Desktop.
Basic debugging (formatting for C4Log / NSLog)
//
// 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