rrthomas / mit

A simple stack-based VM
Other
10 stars 3 forks source link

Use MIT_ERROR_OK consistently for normal termination (fix #386) #387

Closed rrthomas closed 4 years ago

rrthomas commented 4 years ago

Use MIT_ERROR_BREAK only for break functions, and introduce MIT_ERROR_OK_LONGJMP for the particular purpose of transmitting MIT_ERROR_OK (value 0) via longjmp (as it must pass non-zero to avoid being confused with a normal return from setjmp).