aboutsummaryrefslogtreecommitdiffstats
path: root/code/platform_mac/mac_objective_c_to_cpp_links.h
blob: ab043fc1c787994b588f3f03f6123cd63b27e0f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* Types and functions for communication between C++ and Objective-C layers. */

#if !defined(MAC_OBJECTIVE_C_TO_CPP_LINKS_H)
#define MAC_OBJECTIVE_C_TO_CPP_LINKS_H

// In C++ layer
external String_Const_u8
mac_SCu8(u8* str, u64 size);

external String_Const_u8
mac_push_string_copy(Arena *arena, String_Const_u8 src);

external void
mac_init();

// In Objective-C layer
external String_Const_u8
mac_standardize_path(Arena* arena, String_Const_u8 path);

external i32
mac_get_binary_path(void* buffer, u32 size);

#endif