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

Function visibility_define

numpy/core/setup.py:406–413  ·  view source on GitHub ↗

Return the define value to use for NPY_VISIBILITY_HIDDEN (may be empty string).

(config)

Source from the content-addressed store, hash-verified

404
405
406def visibility_define(config):
407 """Return the define value to use for NPY_VISIBILITY_HIDDEN (may be empty
408 string)."""
409 hide = '__attribute__((visibility("hidden")))'
410 if config.check_gcc_function_attribute(hide, 'hideme'):
411 return hide
412 else:
413 return ''
414
415def configuration(parent_package='',top_path=None):
416 from numpy.distutils.misc_util import (Configuration, dot_join,

Callers 1

generate_numpyconfig_hFunction · 0.85

Calls 1

Tested by

no test coverage detected