Repository navigation
fix(path): expose ORBPath.Callbacks.cgPath as pointer - #43
Conversation
Refine ORBPathCGPathCallbacks for Swift and expose ORBPath.Callbacks.cgPath as UnsafePointer<ORBPath.Callbacks> across native C/C++ and portable Swift backends.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0a3d71bd92
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| #define ORBPathContainsPoints RBPathContainsPoints | ||
|
|
||
| #define ORBPathCGPathCallbacks RBPathCGPathCallbacks | ||
| #define _ORBPathCallbacksGetCGPath _RBPathCallbacksGetCGPath |
There was a problem hiding this comment.
Use the required ORB_ prefix for the new preprocessor macro
The new _ORBPathCallbacksGetCGPath macro violates the root AGENTS.md requirement that C/C++ preprocessor definitions use the ORB_ prefix. Rename the macro to use that prefix and update the corresponding helper name consistently.
AGENTS.md reference: AGENTS.md:L5-L5
Useful? React with 👍 / 👎.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #43 +/- ##
==========================================
+ Coverage 64.08% 64.13% +0.04%
==========================================
Files 17 17
Lines 2066 2066
==========================================
+ Hits 1324 1325 +1
+ Misses 742 741 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Update
ORBPath.Callbacks.cgPathto returnUnsafePointer<ORBPath.Callbacks>across the native C/C++ and portable Swift backends:ORBPathCGPathCallbackswithORB_REFINED_FOR_SWIFTand add_ORBPathCallbacksGetCGPath(ORB_SWIFT_NAME(getter:ORBPathCallbacks.cgPath())) inORBPathCallbacks.h(plus shim mapping inOpenRenderBoxShims.h)._orbCGPathCallbacksdirectly fromORBPath.Callbacks.cgPathinORBPathCallbacks.swift, and updatePathCallbacksTests.DarwinPrivateFrameworksto211a9a3dinPackage.resolved.Dependency