summaryrefslogtreecommitdiffstats
path: root/third_party/python/gyp/test/ios/framework/iOSFramework/Thing.m
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/python/gyp/test/ios/framework/iOSFramework/Thing.m')
-rw-r--r--third_party/python/gyp/test/ios/framework/iOSFramework/Thing.m22
1 files changed, 22 insertions, 0 deletions
diff --git a/third_party/python/gyp/test/ios/framework/iOSFramework/Thing.m b/third_party/python/gyp/test/ios/framework/iOSFramework/Thing.m
new file mode 100644
index 0000000000..5b2b54925e
--- /dev/null
+++ b/third_party/python/gyp/test/ios/framework/iOSFramework/Thing.m
@@ -0,0 +1,22 @@
+#import "Thing.h"
+
+@interface Thing ()
+
+@end
+
+@implementation Thing
+
++ (instancetype)thing {
+ static Thing* thing = nil;
+ static dispatch_once_t onceToken;
+ dispatch_once(&onceToken, ^{
+ thing = [[[self class] alloc] init];
+ });
+ return thing;
+}
+
+- (void)sayHello {
+ NSLog(@"Hello World");
+}
+
+@end