From 256497d454f2df3476842e3b90b03c09628245a5 Mon Sep 17 00:00:00 2001 From: Lightmann Date: Mon, 29 Jun 2026 12:26:27 -0700 Subject: [PATCH 1/2] Document new block-supported orig syntax --- docs/Logos-Syntax.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/Logos-Syntax.md b/docs/Logos-Syntax.md index 4057278..9a478fe 100644 --- a/docs/Logos-Syntax.md +++ b/docs/Logos-Syntax.md @@ -343,6 +343,11 @@ If not specified, the sigil defaults to `-`, evaluating to Class. ```objc %orig(args, …) ``` +```objc +%orig(^{ + ... +}) +``` Call the original hooked function or method. Doesn't work in a [%new](#new)'d method. From db349c78ff3e739d60fb8fe17da08d386cf6a175 Mon Sep 17 00:00:00 2001 From: Lightmann Date: Mon, 29 Jun 2026 12:38:11 -0700 Subject: [PATCH 2/2] Add other two exampls --- docs/Logos-Syntax.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/Logos-Syntax.md b/docs/Logos-Syntax.md index 9a478fe..d14a610 100644 --- a/docs/Logos-Syntax.md +++ b/docs/Logos-Syntax.md @@ -348,6 +348,16 @@ If not specified, the sigil defaults to `-`, evaluating to Class. ... }) ``` +```objc +%orig(args, …, ^(id blockArg1) { + ... +}) +``` +```objc +%orig(^(blockArgs, …) { + ... +}) +``` Call the original hooked function or method. Doesn't work in a [%new](#new)'d method.