SIGN IN SIGN UP

[Apple] Remove trailing semicolons from `RNGHGestureRecognizerState*` macros (#4391)

## Description

The `RNGHGestureRecognizerState*` compatibility macros in `RNGHUIKit.h`
carried a trailing semicolon in their definitions, e.g. `#define
RNGHGestureRecognizerStateFailed UIGestureRecognizerStateFailed;`. Any
expression-context usage, such as `if (state ==
RNGHGestureRecognizerStateFailed)`, expands to `if (state ==
UIGestureRecognizerStateFailed;)` and fails to compile with a confusing
`unexpected ';' before ')'` error. Removing the semicolons makes the
macros usable in any context; existing call sites are unaffected.

## Test plan

- Verified the failure mode before the fix: an expression-context usage
added to `RNGestureHandlerModule.mm` fails to compile, with clang's note
pointing at the semicolon in the macro definition;
- Verified after the fix: the same expression-context usage compiles,
and the existing statement usages behave identically (single semicolon
instead of a double one after expansion).
M
Michał Bert committed
787f16581744a82b9966694185e7834ad0f21d67
Parent: 10db6d3
Committed by GitHub <noreply@github.com> on 8/6/2026, 8:56:06 AM