feat(event): add EventGetCurrentContext and EventPostClose

This commit is contained in:
Tristan 'Natrist' Cormier 2023-03-31 12:39:33 -04:00 committed by GitHub
parent e7780e67fb
commit 8e61a4c428
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View file

@ -71,6 +71,14 @@ void EventDoMessageLoop() {
IEvtSchedulerProcess();
}
HEVENTCONTEXT EventGetCurrentContext() {
return PropGet(PROP_EVENTCONTEXT);
}
void EventPostClose() {
EventPostCloseEx(nullptr);
}
void EventPostCloseEx(HEVENTCONTEXT contextHandle) {
if (!contextHandle) {
contextHandle = PropGet(PROP_EVENTCONTEXT);