From 63bdbc94409e9a01a111f00624dc4d1c5981a939 Mon Sep 17 00:00:00 2001 From: theraven Date: Sun, 13 Jan 2013 17:21:16 +0000 Subject: [PATCH] Add another missing file... --- Test/Test.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Test/Test.h diff --git a/Test/Test.h b/Test/Test.h new file mode 100644 index 0000000..3d9d981 --- /dev/null +++ b/Test/Test.h @@ -0,0 +1,23 @@ +#import "objc/runtime.h" +#include + +#ifndef __has_attribute +#define __has_attribute(x) 0 +#endif + +#if __has_attribute(objc_root_class) +__attribute__((objc_root_class)) +#endif +@interface Test { id isa; } +@end +@implementation Test ++ (id)class { return self; } ++ (id)new +{ + return class_createInstance(self, 0); +} +- (void)dealloc +{ + object_dispose(self); +} +@end