Returns a list of preprocessor macros, such as ``[(HAVE_BOOST, 1), (BOOST_VERSION,xx)]``.
This function is automatically used by :py:func:`bob.extension.get_bob_libraries` to retrieve the prerpocessor definitions that are required to use the C bindings of this library in dependent classes.
You shouldn't normally need to call this function by hand.
**Returns:**
``macros`` : [str]
The list of preprocessor macros required to use the C bindings of this class.
"""
# try to use pkg_config first
frombob.extension.boostimportboost
macros=[]
try:
b=boost()
macros=b.macros()
except:
pass
returnmacros
# gets sphinx autodoc done right - don't remove it