summaryrefslogtreecommitdiff
path: root/tests/examplefiles/logos_example.xm
blob: 39753e23686c393e806fc8b4d116353b5d83e222 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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);
}