resonance 1.0.1
Loading...
Searching...
No Matches
extensionmodulebase.h
Go to the documentation of this file.
1#pragma once
2
3#include "os/hxstr.h"
5
6namespace Py {
7
23public:
31 explicit ExtensionModuleBase(const char *pszName);
32
40
41protected:
51 void initialize(const char *pszModuleDoc);
52
55
58};
59
60} // namespace Py
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
ExtensionModuleBase(const char *pszName)
Record the module name and start an empty method table.
const HxStr mModuleName
The module name.
Definition extensionmodulebase.h:54
virtual ~ExtensionModuleBase()
Release the method table and the name.
void initialize(const char *pszModuleDoc)
Register the module with the interpreter.
MethodTable mMethodTable
The methods to register.
Definition extensionmodulebase.h:57
Accumulator for the method table of an extension module.
Definition methodtable.h:54
C++ wrappers for the embedded Python interpreter's objects, types, and extension modules.
Definition attributeerror.h:7