diff --git a/src/codegen/codegen_neuron_cpp_visitor.cpp b/src/codegen/codegen_neuron_cpp_visitor.cpp index 139a74fb3..f9864d930 100644 --- a/src/codegen/codegen_neuron_cpp_visitor.cpp +++ b/src/codegen/codegen_neuron_cpp_visitor.cpp @@ -391,9 +391,8 @@ void CodegenNeuronCppVisitor::print_hoc_py_wrapper_setup( } } -void CodegenNeuronCppVisitor::print_hoc_py_wrapper_function_body( - const ast::Block* function_or_procedure_block, - InterpreterWrapper wrapper_type) { +void CodegenNeuronCppVisitor::print_hoc_py_wrapper(const ast::Block* function_or_procedure_block, + InterpreterWrapper wrapper_type) { if (info.point_process && wrapper_type == InterpreterWrapper::Python) { return; } @@ -416,8 +415,8 @@ void CodegenNeuronCppVisitor::print_hoc_py_wrapper_function_body( void CodegenNeuronCppVisitor::print_hoc_py_wrapper_function_definitions() { auto print_wrappers = [this](const auto& callables) { for (const auto& callable: callables) { - print_hoc_py_wrapper_function_body(callable, InterpreterWrapper::HOC); - print_hoc_py_wrapper_function_body(callable, InterpreterWrapper::Python); + print_hoc_py_wrapper(callable, InterpreterWrapper::HOC); + print_hoc_py_wrapper(callable, InterpreterWrapper::Python); } }; diff --git a/src/codegen/codegen_neuron_cpp_visitor.hpp b/src/codegen/codegen_neuron_cpp_visitor.hpp index 29457b3bc..d86679bd1 100644 --- a/src/codegen/codegen_neuron_cpp_visitor.hpp +++ b/src/codegen/codegen_neuron_cpp_visitor.hpp @@ -250,8 +250,8 @@ class CodegenNeuronCppVisitor: public CodegenCppVisitor { * * Print setup code `inst`, etc. * * Print code to call the function and return. */ - void print_hoc_py_wrapper_function_body(const ast::Block* function_or_procedure_block, - InterpreterWrapper wrapper_type); + void print_hoc_py_wrapper(const ast::Block* function_or_procedure_block, + InterpreterWrapper wrapper_type); /** Print the setup code for HOC/Py wrapper. */