- Displays an error message and interrupts the execution of bytecode in case of unknown function

time-shift
Ferhat Mihoubi 2010-12-17 17:24:18 +01:00
parent 129d404eb8
commit 7a58637932
1 changed files with 21 additions and 3 deletions

View File

@ -916,9 +916,15 @@ Interpreter::compute_block_time(int Per_u_, bool evaluate, int block_num, int si
#endif
break;
case oEqual:
// Nothing to do
break;
default:
/*throw EvalException();*/
;
{
mexPrintf("Error\n");
ostringstream tmp;
tmp << " in compute_block_time, unknown binary operator " << op << "\n";
throw FatalExceptionHandling(tmp.str());
}
}
break;
case FUNARY:
@ -1062,7 +1068,12 @@ Interpreter::compute_block_time(int Per_u_, bool evaluate, int block_num, int si
# endif
break;
default:
;
{
mexPrintf("Error\n");
ostringstream tmp;
tmp << " in compute_block_time, unknown unary operator " << op << "\n";
throw FatalExceptionHandling(tmp.str());
}
}
break;
case FTRINARY:
@ -1087,6 +1098,13 @@ Interpreter::compute_block_time(int Per_u_, bool evaluate, int block_num, int si
tmp_out << " |normpdf(" << v1 << ", " << v2 << ", " << v3 << ")|";
#endif
break;
default:
{
mexPrintf("Error\n");
ostringstream tmp;
tmp << " in compute_block_time, unknown trinary operator " << op << "\n";
throw FatalExceptionHandling(tmp.str());
}
}
break;