diff options
author | Georg Brandl <georg@python.org> | 2013-01-10 22:06:46 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2013-01-10 22:06:46 +0100 |
commit | 77ba79b75a2660af2cfd8ae9a072b9d56ccd961d (patch) | |
tree | f0fb41a6fed23122ad5c9693b201e22c35cba3ab /tests | |
parent | 00ebe18996d37459f6ea40c6966bbe0f09841ccc (diff) | |
parent | dab1c1d46465274ecd127c45591151bfdae142c6 (diff) | |
download | pygments-77ba79b75a2660af2cfd8ae9a072b9d56ccd961d.tar.gz |
merge heads
Diffstat (limited to 'tests')
-rw-r--r-- | tests/examplefiles/logos_example.xm | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/examplefiles/logos_example.xm b/tests/examplefiles/logos_example.xm new file mode 100644 index 00000000..39753e23 --- /dev/null +++ b/tests/examplefiles/logos_example.xm @@ -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); +} |