Added "division by zero" to the VM-aborting errors

This commit is contained in:
Leonard2 2016-09-14 12:43:05 +02:00
commit cb17e109f1
3 changed files with 45 additions and 0 deletions

View file

@ -436,6 +436,10 @@ int VMFrameStack::Call(VMFunction *func, VMValue *params, int numparams, VMRetur
case X_ARRAY_OUT_OF_BOUNDS:
Printf("array access out of bounds.");
break;
case X_DIVISION_BY_ZERO:
Printf("division by zero.");
break;
}
Printf("\n");