2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-21 17:12:22 +00:00

This commit was manufactured by cvs2svn to create tag

'Version_1_21_1'.

[SVN r9561]
This commit is contained in:
nobody
2001-03-14 15:36:54 +00:00
parent 9b602d16b4
commit afd66d8b00
67 changed files with 6127 additions and 894 deletions

View File

@@ -14,10 +14,15 @@ namespace {
ref name_holder;
}
bool module_builder::initializing()
{
return name_holder.get() != 0;
}
string module_builder::name()
{
// If this fails, you haven't created a module_builder object
assert(name_holder.get() != 0);
assert(initializing());
return string(name_holder);
}
@@ -29,6 +34,11 @@ module_builder::module_builder(const char* name)
name_holder = ref(PyObject_GetAttrString(m_module, const_cast<char*>("__name__")));
}
module_builder::~module_builder()
{
name_holder.reset();
}
void
module_builder::add(detail::function* x, const char* name)
{