mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
		
			306 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			306 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| %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);
 | |
| }
 |