2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-26 06:42:27 +00:00

separate overloads.hpp

BOOST_PYTHON_MODULE_INIT -> BOOST_PYTHON_MODULE


[SVN r15609]
This commit is contained in:
Dave Abrahams
2002-10-01 14:40:41 +00:00
parent c6cba55667
commit 5cd513859d
64 changed files with 130 additions and 229 deletions

View File

@@ -5,7 +5,7 @@
// to its suitability for any purpose.
#include <boost/python/enum.hpp>
#include <boost/python/def.hpp>
#include <boost/python/module_init.hpp>
#include <boost/python/module.hpp>
using namespace boost::python;
@@ -13,7 +13,7 @@ enum color { red = 1, green = 2, blue = 4 };
color identity_(color x) { return x; }
BOOST_PYTHON_MODULE_INIT(enum_ext)
BOOST_PYTHON_MODULE(enum_ext)
{
enum_<color>("color")
.value("red", red)