BlueBrain / nmodl

Code Generation Framework For NEURON MODeling Language
https://bluebrain.github.io/nmodl/
Apache License 2.0
57 stars 15 forks source link

Prevent inlining VERBATIM. #1519

Closed 1uc closed 3 weeks ago

1uc commented 1 month ago

We're banning all VERBATIM blocks because the current solution failed to detect:

BREAKPOINT {
   SOLVE getonset
}

PROCEDURE getonset() {
   VERBATIM
   return 0;
   ENDVERBATIM
}

must not be inlined as:

void nrn_state_synp(...) {
// ...
    for (int id = 0; id < nodecount; id++) {
        // VERBATIM
        return 0; 
        // ENDVERBATIM
    }
}