mirror of
https://github.com/zoriya/nitro.git
synced 2026-10-13 00:05:23 +00:00
* feat: Safely wrap a Swift closure in a `SwiftClosure` struct callable from C++ * Unsafely unwrap (`!`) * fix: Fix visibility modifiers * fix: Rename `ClosureWrapper` -> `SwiftClosure` * Update SwiftClosure.hpp * Update SwiftClosure.hpp * Create `SwiftFunction` base * regen * feat: Properly create `std::function` from Swift closure * fix: Forward params I think * Update SwiftCxxBridgedType.ts * feat: Use static function pointer to allow for C++ types * fix: Only do this for Swift * Update SwiftCxxBridgedType.ts * fix: Properly unwrap using `Unmanaged` * fix: Fix Swift compiler crash by moving function to `std::shared_ptr` before capturing it * feat: Properly share func before capturing it * Update SwiftCxxTypeHelper.ts