Skip to content

Commit 166240b

Browse files
author
Goran Jelic-Cizmek
committed
Put back missing function
1 parent c0cd4f5 commit 166240b

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

src/nmodl/visitors/visitor_utils.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,5 +302,9 @@ bool is_nrn_pointing(const std::string& name) {
302302
return name == codegen::naming::NRN_POINTING_METHOD;
303303
}
304304

305+
bool is_nrn_state_disc(const std::string& name) {
306+
return name == codegen::naming::NRN_STATE_DISC_METHOD;
307+
}
308+
305309

306310
} // namespace nmodl

src/nmodl/visitors/visitor_utils.hpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,4 +147,11 @@ bool is_random_construct_function(const std::string& name);
147147
/// Is given name `nrn_pointing`.
148148
bool is_nrn_pointing(const std::string& name);
149149

150+
/**
151+
* Checks if given function name is \c state_discontinuity
152+
* \param name The function name to check
153+
* \return \c true if the function is state_discontinuity
154+
*/
155+
bool is_nrn_state_disc(const std::string& name);
156+
150157
} // namespace nmodl

0 commit comments

Comments
 (0)