MCPcopy Create free account
hub / github.com/numpy/numpy / check_decl

Method check_decl

numpy/distutils/command/config.py:172–185  ·  view source on GitHub ↗
(self, symbol,
                   headers=None, include_dirs=None)

Source from the content-addressed store, hash-verified

170 [header], include_dirs)
171
172 def check_decl(self, symbol,
173 headers=None, include_dirs=None):
174 self._check_compiler()
175 body = textwrap.dedent("""
176 int main(void)
177 {
178 #ifndef %s
179 (void) %s;
180 #endif
181 ;
182 return 0;
183 }""") % (symbol, symbol)
184
185 return self.try_compile(body, headers, include_dirs)
186
187 def check_macro_true(self, symbol,
188 headers=None, include_dirs=None):

Callers 3

check_math_capabilitiesFunction · 0.80
check_typesFunction · 0.80
generate_numpyconfig_hFunction · 0.80

Calls 1

_check_compilerMethod · 0.95

Tested by

no test coverage detected