diff options
Diffstat (limited to 'src/qcommon/vm_local.h')
-rw-r--r-- | src/qcommon/vm_local.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/qcommon/vm_local.h b/src/qcommon/vm_local.h index 7560832c..5e00c0de 100644 --- a/src/qcommon/vm_local.h +++ b/src/qcommon/vm_local.h @@ -23,6 +23,14 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include "q_shared.h" #include "qcommon.h" +// Max number of arguments to pass from engine to vm's vmMain function. +// command number + 12 arguments +#define MAX_VMMAIN_ARGS 13 + +// Max number of arguments to pass from a vm to engine's syscall handler function for the vm. +// syscall number + 15 arguments +#define MAX_VMSYSCALL_ARGS 16 + // don't change, this is hardcoded into x86 VMs, opStack protection relies // on this #define OPSTACK_SIZE 1024 |