summaryrefslogtreecommitdiff
path: root/numpy/f2py/lib/wrapper_base.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/f2py/lib/wrapper_base.py')
-rw-r--r--numpy/f2py/lib/wrapper_base.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/numpy/f2py/lib/wrapper_base.py b/numpy/f2py/lib/wrapper_base.py
index f290c2f86..d969b87fb 100644
--- a/numpy/f2py/lib/wrapper_base.py
+++ b/numpy/f2py/lib/wrapper_base.py
@@ -118,12 +118,12 @@ class WrapperCPPMacro(WrapperBase):
"""
CPP macros
"""
- _defined_macros = []
def __init__(self, parent, name):
WrapperBase.__init__(self)
- if name in self._defined_macros:
+ defined = parent.defined_cpp_code
+ if name in defined:
return
- self._defined_macros.append(name)
+ defined.append(name)
body = self.get_resource_content(name,'.cpp')
if body is None:
@@ -137,12 +137,12 @@ class WrapperCCode(WrapperBase):
"""
C code
"""
- _defined_codes = []
def __init__(self, parent, name):
WrapperBase.__init__(self)
- if name in self._defined_codes:
+ defined = parent.defined_c_code
+ if name in defined:
return
- self._defined_codes.append(name)
+ defined.append(name)
body = self.get_resource_content(name,'.c')
if body is None: