Skip to content

Commit

Permalink
Appease tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
1uc committed Dec 20, 2023
1 parent 59efbf0 commit 84d38e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/codegen/codegen_neuron_cpp_visitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ void CodegenNeuronCppVisitor::print_mechanism_global_var_structure(bool print_in
printer->fmt_push_block("struct {}", global_struct());

if (!info.ions.empty()) {
throw std::runtime_error("Not implemented, global ions.");
// TODO implement these when needed.
}

if (info.point_process) {
Expand Down
1 change: 1 addition & 0 deletions test/unit/codegen/codegen_neuron_cpp_visitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ void _nrn_mechanism_register_data_fields(Args&&... args) {
const double* ion_ena{};
double* ion_ina{};
double* ion_dinadv{};
pas_test_Store* global{&pas_test_global};
};)";

REQUIRE_THAT(generated, ContainsSubstring(reindent_and_trim_text(expected)));
Expand Down

0 comments on commit 84d38e0

Please sign in to comment.