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

Method check_macro_true

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

Source from the content-addressed store, hash-verified

185 return self.try_compile(body, headers, include_dirs)
186
187 def check_macro_true(self, symbol,
188 headers=None, include_dirs=None):
189 self._check_compiler()
190 body = textwrap.dedent("""
191 int main(void)
192 {
193 #if %s
194 #else
195 #error false or undefined macro
196 #endif
197 ;
198 return 0;
199 }""") % (symbol,)
200
201 return self.try_compile(body, headers, include_dirs)
202
203 def check_type(self, type_name, headers=None, include_dirs=None,
204 library_dirs=None):

Callers

nothing calls this directly

Calls 1

_check_compilerMethod · 0.95

Tested by

no test coverage detected