flatten oc_request_quit() binding

This commit is contained in:
Reuben Dunnington 2023-08-22 14:11:46 -07:00 committed by MartinFouilleul
parent f4a82cd381
commit 9ca7e82c82
3 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -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();
}

View File

@ -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": []
}
]