oc_request_quit #55

Merged
MartinFouilleul merged 5 commits from oc_request_quit into main 2023-08-22 21:32:14 +00:00
3 changed files with 8 additions and 8 deletions
Showing only changes of commit fcb47f090e - Show all commits

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