Skip to content
Snippets Groups Projects
Commit 721e60cf authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Fix python binding by making global declaration CustomCodeNode instead of string

parent 233a965f
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@ import jinja2
import stringcase
from pystencils.astnodes import KernelFunction
from pystencils.backends.cbackend import CustomCodeNode
from pystencils_autodiff.framework_integration.astnodes import JinjaCppFile
......@@ -158,7 +159,7 @@ class PybindFunctionWrapping(JinjaCppFile):
"""m.def("{{ python_name }}", &{{ cpp_name }}{% for p in parameters -%}, "{{ p }}"_a{% endfor %});""" # noqa
)
required_global_declarations = ["using namespace pybind11::literals;"]
required_global_declarations = [CustomCodeNode("using namespace pybind11::literals;", (), ())]
headers = ['<pybind11/pybind11.h>',
'<pybind11/stl.h>']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment