Created
November 7, 2013 09:36
-
-
Save dodikk/7351827 to your computer and use it in GitHub Desktop.
Objective-C++ precompiled headers in a nutshell.
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
// *.pch | |
// Pure C headers go here | |
#include <math.h> | |
#ifdef __cplusplus | |
// Pure c++ headers ho here | |
#include <vector> | |
#endif | |
#ifdef __OBJC__ | |
#import <Foundation/Foundation.h> | |
#ifdef __cplusplus | |
#import "MyObjectiveCppClass.h" | |
#endif | |
#endif | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment