ModuleDefinition Struct Reference

#include <cpython.h>

Public Member Functions

 ModuleDefinition ()=default
 
 ModuleDefinition (const Char *name, py::NativePyMethodDef *methods, const Char *doc)
 

Public Attributes

const Charm_name
 
const Charm_doc
 
Int64 m_size
 
py::NativePyMethodDefm_methods
 

Constructor & Destructor Documentation

◆ ModuleDefinition() [1/2]

ModuleDefinition ( )
default

◆ ModuleDefinition() [2/2]

ModuleDefinition ( const Char name,
py::NativePyMethodDef methods,
const Char doc 
)

Member Data Documentation

◆ m_name

const Char* m_name

◆ m_doc

const Char* m_doc

Name of the module.

◆ m_size

Int64 m_size

Optional docstring.

◆ m_methods

Private.