The previous implementation would sit and spin on strtoul when handed invalid input. This version performs more sanity checks as it parses, although it doesn't require the presence of surrounding parenthesis due to the parser giving it just '0' while parsing compilers/pct/src/PCT/HLLCompiler.pir
Signed-off-by: Jonathan "Duke" Leto <email@example.com>
Also support CURRENT_RUNCORE in interpinfo_s() to get the name of the current runcore. We need an extra op for the runcore switching, because we need to restart the runops() loop. This can only be done in an op at the moment.
… to get the exception .get_results clears the call object, so we cannot use it to get the exception when HLL code also relies on .get_results returning the exception. Thus, the new op returns the exception without clearing the call object. This op can be removed again if PCT provides a different mechanism to get the exception and all HLLs use the new mechanism.
…dlers. Instead of the iterator we store the number of handlers left in the Exception. Also, a new experimental op was added, "pop_upto_eh". It pops all handlers until it reaches the current handler of ther specified exception.
…ed.t, t/src/extend.t and (surprise, surprise) t/src/checkdepend.t
Conflicts: compilers/imcc/imclexer.c compilers/imcc/imcparser.c compilers/imcc/imcparser.h src/pmc/imccompiler.pmc
…error message, to guarantee we never added more helpful information to it