BlueBrain / nmodl

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

Check `count` as a variable name. #1266

Open 1uc opened 4 months ago

1uc commented 4 months ago

This one has high potential of clashing with something. Currently (on some platforms),

x86_64/corenrn/mod2c/variable_names.cpp:576:143: error: ‘count’ was not declared in this scope; did you mean ‘std::count’?
  576 |             nmodl_eigen_f[static_cast<int>(3)] =  -nmodl_eigen_x[static_cast<int>(3)] * nt->_dt * kf1_ - nmodl_eigen_x[static_cast<int>(3)] + count * nt->_dt * kb1_ + old_as;
      |                                                                                                                                               ^~~~~
      |                                                                                                                                               std::count