Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
fix linking failure in ObjC++ projects
Browse files Browse the repository at this point in the history
declare TTIsInDebugger explictly as a C function, so
projects using (Obj)C++ and including Three20 don't
bail
fixes #779
  • Loading branch information
diederich committed Feb 24, 2012
1 parent edd531c commit e62e213
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Three20Core/Headers/TTDebug.h
Expand Up @@ -65,7 +65,12 @@

#if TARGET_IPHONE_SIMULATOR

#ifdef __cplusplus
extern "C" __attribute__ ((visibility ("default"))) int TTIsInDebugger();
#else
int TTIsInDebugger();
#endif

// We leave the __asm__ in this macro so that when a break occurs, we don't have to step out of
// a "breakInDebugger" function.
#define TTDASSERT(xx) { if (!(xx)) { TTDPRINT(@"TTDASSERT failed: %s", #xx); \
Expand Down

0 comments on commit e62e213

Please sign in to comment.