1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
struct { int foo; } bar; extern "C" int *i; extern "C" { int *i; } int *i; extern "C" NSString *i; extern "C" { NSString *i; } NSString *i; __attribute__((visibility("default"))) int *i; __attribute__((visibility("default"))) NSString *i; #define DEFINE_NOTIFICATION(name) extern "C" __attribute__((visibility("default"))) NSString *const name = @#name;