-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename objc_test_utils -> objc2_test_utils
- Loading branch information
Showing
3 changed files
with
7 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,25 @@ | ||
use objc_test_utils; | ||
|
||
use crate::{Block, RcBlock}; | ||
|
||
pub fn get_int_block_with(i: i32) -> RcBlock<(), i32> { | ||
unsafe { | ||
let ptr = objc_test_utils::get_int_block_with(i); | ||
let ptr = objc2_test_utils::get_int_block_with(i); | ||
RcBlock::new(ptr as *mut _) | ||
} | ||
} | ||
|
||
pub fn get_add_block_with(i: i32) -> RcBlock<(i32,), i32> { | ||
unsafe { | ||
let ptr = objc_test_utils::get_add_block_with(i); | ||
let ptr = objc2_test_utils::get_add_block_with(i); | ||
RcBlock::new(ptr as *mut _) | ||
} | ||
} | ||
|
||
pub fn invoke_int_block(block: &Block<(), i32>) -> i32 { | ||
let ptr = block as *const _; | ||
unsafe { objc_test_utils::invoke_int_block(ptr as *mut _) } | ||
unsafe { objc2_test_utils::invoke_int_block(ptr as *mut _) } | ||
} | ||
|
||
pub fn invoke_add_block(block: &Block<(i32,), i32>, a: i32) -> i32 { | ||
let ptr = block as *const _; | ||
unsafe { objc_test_utils::invoke_add_block(ptr as *mut _, a) } | ||
unsafe { objc2_test_utils::invoke_add_block(ptr as *mut _, a) } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters