Skip to content

Instantly share code, notes, and snippets.

@SofijaErkin
Forked from jrwren/gist:1925688
Created January 9, 2022 07:25
Show Gist options
  • Save SofijaErkin/e1fa6a6040779c1bc9ed4c8e7d447c18 to your computer and use it in GitHub Desktop.
Save SofijaErkin/e1fa6a6040779c1bc9ed4c8e7d447c18 to your computer and use it in GitHub Desktop.
llvm gcc vs. Apple LLVM 3.0 (clang)
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (
#ifdef __clang__
strong,
#endif
nonatomic) UIWindow *window;
@end
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char *argv[])
{
#ifdef __clang__
@autoreleasepool {
#endif
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
#ifdef __clang__
}
#endif
}
@property (
#ifdef __clang__
strong,
#endif
nonatomic) EAGLContext *context;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment