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

detail-ification

[SVN r8270]
This commit is contained in:
Dave Abrahams
2000-11-21 06:54:33 +00:00
parent b34a2a3754
commit 9e376229d8
24 changed files with 577 additions and 568 deletions

View File

@@ -26,14 +26,14 @@ Module::Module(const char* name)
{
// If this fails, you've created more than 1 Module object in your module
assert(name_holder.get() == 0);
name_holder = Ptr(PyObject_GetAttrString(m_module, "__name__"));
name_holder = Ptr(PyObject_GetAttrString(m_module, const_cast<char*>("__name__")));
}
void
Module::add(Function* x, const char* name)
Module::add(detail::Function* x, const char* name)
{
PyPtr<Function> f(x); // First take possession of the object.
Function::add_to_namespace(f, name, PyModule_GetDict(m_module));
PyPtr<detail::Function> f(x); // First take possession of the object.
detail::Function::add_to_namespace(f, name, PyModule_GetDict(m_module));
}
void Module::add(Ptr x, const char* name)