This commit is contained in:
Ilia Demianenko 2023-07-15 00:20:45 -07:00
parent bffcaa4abf
commit 7450930ae8
1 changed files with 0 additions and 5 deletions

View File

@ -501,11 +501,6 @@ void* orca_runloop(void* user)
if(eventHandlers[G_EVENT_RAW_EVENT]) if(eventHandlers[G_EVENT_RAW_EVENT])
{ {
if (app->runtime.rawEventOffset == 0)
{
log_error("expected raw event location to be set");
}
#ifndef M3_BIG_ENDIAN #ifndef M3_BIG_ENDIAN
mp_event* eventPtr = (mp_event*)wasm_memory_offset_to_ptr(&app->runtime.wasmMemory, app->runtime.rawEventOffset); mp_event* eventPtr = (mp_event*)wasm_memory_offset_to_ptr(&app->runtime.wasmMemory, app->runtime.rawEventOffset);
memcpy(eventPtr, event, sizeof(*event)); memcpy(eventPtr, event, sizeof(*event));