Created
August 2, 2011 21:54
-
-
Save kballenegger/1121324 to your computer and use it in GitHub Desktop.
Forcing category linking in static libraries.
This file contains 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
// [...] | |
#import "NSInvocation+ForwardedConstruction.h" | |
void linkToMyCategoryProperly(void); | |
void linkToMyCategoryProperly() { | |
emptyCFunctionToForceLinkerToIncludeNSInvocationForwardedConstruction(); // make sure it's linked to properly | |
} | |
// [...] |
This file contains 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 emptyCFunctionToForceLinkerToIncludeNSInvocationForwardedConstruction(void); | |
// [...] |
This file contains 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 emptyCFunctionToForceLinkerToIncludeNSInvocationForwardedConstruction() { | |
// do nothing | |
} | |
// [...] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment