mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-30 16:10:53 +00:00
64cc8c60d2
+load runtime support seems to be working. This is an imperfect revision of history.
40 lines
371 B
R
40 lines
371 B
R
@interface Foo : Object
|
|
{
|
|
integer x;
|
|
}
|
|
-run;
|
|
@end
|
|
|
|
|
|
@implementation Foo
|
|
|
|
+load
|
|
{
|
|
print ("+load\n");
|
|
return self;
|
|
}
|
|
|
|
+alloc
|
|
{
|
|
print ("+alloc\n");
|
|
return class_create_instance (self);
|
|
}
|
|
|
|
-init
|
|
{
|
|
print ("-init\n");
|
|
return [super init];
|
|
}
|
|
|
|
+ (void) initialize
|
|
{
|
|
print ("+initialize\n");
|
|
}
|
|
|
|
-run
|
|
{
|
|
print ("Hello world\n");
|
|
printf ("%i %p\n", self, &self.x);
|
|
}
|
|
|
|
@end
|