| 1 |
from pypy.interpreter.mixedmodule import MixedModule |
| 2 |
|
| 3 |
class Module(MixedModule): |
| 4 |
"This module bridges the cppyy frontend with its backend, through PyPy.\n\ |
| 5 |
See http://cppyy.readthedocs.io/en/latest for full details." |
| 6 |
|
| 7 |
interpleveldefs = { |
| 8 |
'_resolve_name' : 'interp_cppyy.resolve_name', |
| 9 |
'_scope_byname' : 'interp_cppyy.scope_byname', |
| 10 |
'_is_static_data' : 'interp_cppyy.is_static_data', |
| 11 |
'_is_template' : 'interp_cppyy.is_template', |
| 12 |
'_std_string_name' : 'interp_cppyy.std_string_name', |
| 13 |
'_set_class_generator' : 'interp_cppyy.set_class_generator', |
| 14 |
'_set_function_generator': 'interp_cppyy.set_function_generator', |
| 15 |
'_register_class' : 'interp_cppyy.register_class', |
| 16 |
'_get_nullptr' : 'interp_cppyy.get_nullptr', |
| 17 |
'CPPInstance' : 'interp_cppyy.W_CPPInstance', |
| 18 |
'addressof' : 'interp_cppyy.addressof', |
| 19 |
'_bind_object' : 'interp_cppyy._bind_object', |
| 20 |
'bind_object' : 'interp_cppyy.bind_object', |
| 21 |
'move' : 'interp_cppyy.move', |
| 22 |
'_pin_type' : 'interp_cppyy._pin_type', |
| 23 |
} |
| 24 |
|
| 25 |
appleveldefs = { |
| 26 |
'_post_import_startup' : 'pythonify._post_import_startup', |
| 27 |
'Template' : 'pythonify.CPPTemplate', |
| 28 |
'add_pythonization' : 'pythonify.add_pythonization', |
| 29 |
'remove_pythonization' : 'pythonify.remove_pythonization', |
| 30 |
} |
| 31 |
|
| 32 |
def __init__(self, space, *args): |
| 33 |
"NOT_RPYTHON" |
| 34 |
MixedModule.__init__(self, space, *args) |
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
from pypy.module._cppyy import capi |
| 39 |
capi.register_pythonizations(space) |