![]() |
NEURON
|
Go to the source code of this file.
Classes | |
struct | try_catch_depth_increment |
Helper type for incrementing/decrementing nrn_try_catch_nest_depth. More... | |
struct | ObjectContext |
struct | OcJump |
Variables | |
int | nrn_try_catch_nest_depth |
How many NEURON try { ... More... | |
|
extern |
How many NEURON try { ...
} catch(...) { ... } blocks are in the call stack.
Errors inside NEURON are triggered using hoc_execerror, which ultimately throws an exception. To replicate the old logic, we sometimes need to insert a try/catch block only if there is no try/catch block less deeply nested on the call stack. This global variable tracks how many such blocks are currently present on the stack.