You've already forked example-native-api-rs
mirror of
https://github.com/medigor/example-native-api-rs.git
synced 2025-07-05 00:58:53 +02:00
исправил unsafe в некоторых местах
This commit is contained in:
@ -46,10 +46,8 @@ pub extern "C" fn GetClassNames() -> *const u16 {
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
#[no_mangle]
|
||||
pub extern "C" fn SetPlatformCapabilities(capabilities: c_int) -> c_int {
|
||||
unsafe {
|
||||
PLATFORM_CAPABILITIES.store(capabilities, Ordering::Relaxed);
|
||||
}
|
||||
pub unsafe extern "C" fn SetPlatformCapabilities(capabilities: c_int) -> c_int {
|
||||
PLATFORM_CAPABILITIES.store(capabilities, Ordering::Relaxed);
|
||||
3
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user