Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Objective-C++ precompiled headers in a nutshell.
// *.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