flatten oc_request_quit() binding
This commit is contained in:
parent
f4a82cd381
commit
9ca7e82c82
|
@ -287,6 +287,7 @@ extern "C"
|
|||
|
||||
ORCA_API bool oc_should_quit(void);
|
||||
ORCA_API void oc_cancel_quit(void);
|
||||
ORCA_API void oc_request_quit(void);
|
||||
|
||||
ORCA_API void oc_set_cursor(oc_mouse_cursor cursor);
|
||||
|
||||
|
@ -401,6 +402,10 @@ extern "C"
|
|||
|
||||
ORCA_API int oc_directory_create(oc_str8 path);
|
||||
|
||||
#else
|
||||
|
||||
void ORCA_IMPORT(oc_request_quit)(void);
|
||||
|
||||
#endif // !defined(OC_PLATFORM_ORCA) || !(OC_PLATFORM_ORCA)
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
@ -2,10 +2,3 @@
|
|||
|
||||
//This is used to pass raw events from the runtime
|
||||
ORCA_EXPORT oc_event oc_rawEvent;
|
||||
|
||||
void ORCA_IMPORT(oc_request_quit_stub)(void);
|
||||
|
||||
void oc_request_quit()
|
||||
{
|
||||
oc_request_quit_stub();
|
||||
}
|
||||
|
|
|
@ -62,10 +62,12 @@
|
|||
"name": "oc_get_host_platform",
|
||||
"cname": "oc_get_host_platform",
|
||||
"ret": {"name": "int", "tag": "i"},
|
||||
"args": []
|
||||
},
|
||||
{
|
||||
"name": "oc_request_quit_stub",
|
||||
"name": "oc_request_quit",
|
||||
"cname": "oc_request_quit",
|
||||
"ret": {"name": "void", "tag": "v"},
|
||||
"args": []
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue