Fix passing arguments to VM dylib on Apple M1

The engine function pointer to vmMain used variadic arguments but
the vmMain function in the dylib has explicit arguments. Evidently
the arguments are stored on the stack and/or registers differently.

Found by fretn.
This commit is contained in:
Zack Middleton 2021-11-19 13:45:35 -05:00
parent 68ac81316d
commit 75ae9119e6
3 changed files with 5 additions and 3 deletions

View file

@ -154,7 +154,7 @@ struct vm_s {
// for dynamic linked modules
void *dllHandle;
intptr_t (QDECL *entryPoint)( int callNum, ... );
vmMainProc entryPoint;
void (*destroy)(vm_t* self);
// for interpreted modules