Add support for the Logos language.

This commit is contained in:
Dustin L. Howett
2012-11-21 19:47:07 -08:00
committed by Dustin L. Howett
parent 6b6f5eaaff
commit 7d2603ceb7
2 changed files with 36 additions and 0 deletions

28
samples/Logos/example.xm Normal file
View File

@@ -0,0 +1,28 @@
%hook ABC
- (id)a:(B)b {
%log;
return %orig(nil);
}
%end
%subclass DEF: NSObject
- (id)init {
[%c(RuntimeAccessibleClass) alloc];
return nil;
}
%end
%group OptionalHooks
%hook ABC
- (void)release {
[self retain];
%orig;
}
%end
%end
%ctor {
%init;
if(OptionalCondition)
%init(OptionalHooks);
}