mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-19 08:46:32 +00:00
Berry fix raise counter
This commit is contained in:
parent
4acd9dbd0f
commit
51e99fe4af
@ -74,6 +74,9 @@ struct filebuf {
|
|||||||
|
|
||||||
void be_throw(bvm *vm, int errorcode)
|
void be_throw(bvm *vm, int errorcode)
|
||||||
{
|
{
|
||||||
|
#if BE_USE_PERF_COUNTERS
|
||||||
|
vm->counter_exc++;
|
||||||
|
#endif
|
||||||
if (vm->errjmp) {
|
if (vm->errjmp) {
|
||||||
vm->errjmp->status = errorcode;
|
vm->errjmp->status = errorcode;
|
||||||
exec_throw(vm->errjmp);
|
exec_throw(vm->errjmp);
|
||||||
|
@ -1019,9 +1019,6 @@ newframe: /* a new call frame */
|
|||||||
dispatch();
|
dispatch();
|
||||||
}
|
}
|
||||||
opcase(RAISE): {
|
opcase(RAISE): {
|
||||||
#if BE_USE_PERF_COUNTERS
|
|
||||||
vm->counter_exc++;
|
|
||||||
#endif
|
|
||||||
if (IGET_RA(ins) < 2) { /* A==2 means no arguments are passed to RAISE, i.e. rethrow with current exception */
|
if (IGET_RA(ins) < 2) { /* A==2 means no arguments are passed to RAISE, i.e. rethrow with current exception */
|
||||||
bvalue *top = vm->top;
|
bvalue *top = vm->top;
|
||||||
top[0] = *RKB(); /* push the exception value to top */
|
top[0] = *RKB(); /* push the exception value to top */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user