pybind11/include/pybind11
Jason Rhinelander e98d31d697 Force hidden visibility on functions needing distinct static locals
This commit adds a PYBIND11_UNSHARED_STATIC_LOCALS macro that forces a
function to have hidden visibility under gcc and gcc-compatible
compilers.  gcc, in particular, needs this to to avoid sharing static
local variables across modules (which happens even under a RTLD_LOCAL
dlopen()!).  clang doesn't appear to have this issue, but the forced
visibility on internal pybind functions certainly won't hurt it and icc.

This updates the workaround from #862 to use this rather than the
version-specific template.
2017-08-04 10:47:34 -04:00
..
attr.h Make init_holder do registration, and rename to init_instance 2017-07-28 20:39:33 -04:00
buffer_info.h Convenience constructor templates for buffer_info (#860) 2017-05-29 03:13:55 +02:00
cast.h Force hidden visibility on functions needing distinct static locals 2017-08-04 10:47:34 -04:00
chrono.h Fix for floating point durations 2017-03-11 23:04:16 -04:00
class_support.h Fix occassional segfault introduced by #960 2017-07-29 04:16:11 -04:00
common.h Force hidden visibility on functions needing distinct static locals 2017-08-04 10:47:34 -04:00
complex.h Allow std::complex field with PYBIND11_NUMPY_DTYPE (#831) 2017-05-10 11:36:24 +02:00
descr.h Fix gcc 7 warning 2017-05-10 10:42:23 -04:00
eigen.h Fix indirect loading of Eigen::Ref 2017-06-29 11:31:54 +02:00
embed.h Make PYBIND11_OBJECT_CVT only convert if the type check fails 2017-08-04 10:14:55 -04:00
eval.h Fix missing default globals in eval/exec when embedding 2017-06-07 11:44:30 +02:00
functional.h Use std::type_info::name() for type lookups outside stdlibc++ 2017-06-24 10:46:33 -03:00
numpy.h Help CLion IDE evaluate PYBIND11_NUMPY_DTYPE 2017-06-23 12:56:15 +02:00
operators.h Define both __div__ and __truediv__ for Python 2 2017-05-21 19:15:25 -04:00
options.h Provide more control over automatic generation of docstrings (#486) 2016-11-15 12:38:05 +01:00
pybind11.h Fix occassional segfault introduced by #960 2017-07-29 04:16:11 -04:00
pytypes.h Make PYBIND11_OBJECT_CVT only convert if the type check fails 2017-08-04 10:14:55 -04:00
stl_bind.h Detect std::pair non-copyability 2017-07-28 20:37:45 -04:00
stl.h Use rvalue subcasting when casting an rvalue container 2017-07-05 12:27:14 -04:00
typeid.h minor cleanups in common.h; updated author info and copyright year 2016-04-18 10:53:38 +02:00