mirror of
https://github.com/boostorg/python.git
synced 2026-01-27 07:02:15 +00:00
Introduced new conversion namespace macros
[SVN r8193]
This commit is contained in:
12
pyconfig.h
12
pyconfig.h
@@ -13,10 +13,16 @@
|
||||
# include <cstddef>
|
||||
|
||||
# ifdef BOOST_NO_OPERATORS_IN_NAMESPACE
|
||||
# define PY_NO_INLINE_FRIENDS_IN_NAMESPACE 1 // A more accurate name
|
||||
# define PY_INLINE_FRIEND
|
||||
// A gcc bug forces some symbols into the global namespace
|
||||
# define PY_BEGIN_CONVERSION_NAMESPACE
|
||||
# define PY_END_CONVERSION_NAMESPACE
|
||||
# define PY_CONVERSION
|
||||
# define PY_IMPORT_CONVERSION(x) using ::x
|
||||
# else
|
||||
# define PY_INLINE_FRIEND ::py
|
||||
# define PY_BEGIN_CONVERSION_NAMESPACE namespace py {
|
||||
# define PY_END_CONVERSION_NAMESPACE }
|
||||
# define PY_CONVERSION py
|
||||
# define PY_IMPORT_CONVERSION(x) void never_defined() // so we can follow the macro with a ';'
|
||||
# endif
|
||||
|
||||
# if defined(BOOST_MSVC)
|
||||
|
||||
Reference in New Issue
Block a user