Skip to content

Instantly share code, notes, and snippets.

@dodikk
Created November 7, 2013 09:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dodikk/7351827 to your computer and use it in GitHub Desktop.
Save dodikk/7351827 to your computer and use it in GitHub Desktop.
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