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
// | |
// profiler.h | |
// Quick and dirty profiler | |
// | |
// Created by Niels Gabel on 9/1/08. | |
// | |
// Copyright 2010 Niels Gabel | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. |
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
If you use this code it would be great to receive a credit and link back in your app! Thanks. | |
-Niels Gabel | |
PlacePop Inc | |
http://placepop.com | |
http://nielsbot.com |
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
void | |
c_stddef_cpp_builtins(void) | |
{ | |
builtin_define_with_value ("__SIZE_TYPE__", SIZE_TYPE, 0); | |
builtin_define_with_value ("__PTRDIFF_TYPE__", PTRDIFF_TYPE, 0); | |
builtin_define_with_value ("__WCHAR_TYPE__", MODIFIED_WCHAR_TYPE, 0); | |
builtin_define_with_value ("__WINT_TYPE__", WINT_TYPE, 0); | |
builtin_define_with_value ("__INTMAX_TYPE__", INTMAX_TYPE, 0); | |
builtin_define_with_value ("__UINTMAX_TYPE__", UINTMAX_TYPE, 0); | |
builtin_define_with_value ("__CHAR16_TYPE__", CHAR16_TYPE, 0); |
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
@interface LocationManager | |
// the block should return NO to keep trying to get a better location (i.e. the location wasn't accurate enough) | |
// return NO to stop trying | |
-(void)waitForLocation:(BOOL(^)(CLLocation * currentBestLocation, BOOL timedOut, NSError * error))block timeout:(NSTimeInterval)timeout ; | |
@end |