From b0604411bc34efb87b86d20feed75a6ae8301054 Mon Sep 17 00:00:00 2001 From: Luc Grosheintz Date: Fri, 22 Nov 2024 11:31:53 +0100 Subject: [PATCH] Export NRNPy2String. --- src/nrnpython/nrnpy_utils.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/nrnpython/nrnpy_utils.h b/src/nrnpython/nrnpy_utils.h index 959be30135..bdfaa28896 100644 --- a/src/nrnpython/nrnpy_utils.h +++ b/src/nrnpython/nrnpy_utils.h @@ -1,6 +1,7 @@ #pragma once #include "nrnwrap_Python.h" +#include "nrn_export.hpp" #include @@ -8,7 +9,7 @@ inline bool is_python_string(PyObject* python_string) { return PyUnicode_Check(python_string) || PyBytes_Check(python_string); } -class Py2NRNString { +class NRN_EXPORT Py2NRNString { public: Py2NRNString(PyObject* python_string, bool disable_release = false); @@ -42,7 +43,7 @@ class Py2NRNString { * hoc_execerr_ext("hoc message : %s", e.c_str()); * e will be automatically deleted even though execerror does not return. */ -class PyErr2NRNString { +class NRN_EXPORT PyErr2NRNString { public: PyErr2NRNString() { str_ = NULL;