bindings/python/ns3modulegen_core_customizations.py
changeset 3573 352cfe96e593
parent 3473 6bce86ea4778
child 3574 b6804efbe16b
equal deleted inserted replaced
3572:2e2ad3734b58 3573:352cfe96e593
   396 ''' % dict (CONSTRUCT_NAME=construct_name, HELPER_CLASS_NAME=cls.helper_class.name,
   396 ''' % dict (CONSTRUCT_NAME=construct_name, HELPER_CLASS_NAME=cls.helper_class.name,
   397             PYTYPESTRUCT=cls.pytypestruct)
   397             PYTYPESTRUCT=cls.pytypestruct)
   398         else:
   398         else:
   399             raise AssertionError
   399             raise AssertionError
   400 
   400 
   401         wrapper_name = "_wrap_create_object_%s" % (cls.full_name.replace(':', '_'),) 
   401         wrapper_name = "_wrap_create_object_%s" % (cls.mangled_full_name,) 
   402         constructor = '''
   402         constructor = '''
   403 static int %(WRAPPER_NAME)s (%(PYSTRUCT)s *self, PyObject *args, PyObject *kwargs, PyObject **return_exception)
   403 static int %(WRAPPER_NAME)s (%(PYSTRUCT)s *self, PyObject *args, PyObject *kwargs, PyObject **return_exception)
   404 {
   404 {
   405     if (PyTuple_Size(args)) {
   405     if (PyTuple_Size(args)) {
   406         PyErr_SetString(PyExc_TypeError, "positional arguments not supported "
   406         PyErr_SetString(PyExc_TypeError, "positional arguments not supported "