Douglas Gregor ebf0049901 For modules, all macros that aren't include guards are implicitly
public. Add a __private_macro__ directive to hide a macro, similar to
the __module_private__ declaration specifier.

llvm-svn: 142188
2011-10-17 15:32:29 +00:00

18 lines
305 B
Objective-C

#ifndef MODULE_H
#define MODULE_H
const char *getModuleVersion(void);
#ifdef FOO
# error Module should have been built without -DFOO
#endif
@interface Module
+(const char *)version; // retrieve module version
+alloc;
@end
#define MODULE_H_MACRO 1
#__private_macro__ MODULE_H_MACRO
#endif // MODULE_H