2001-10-12 20:41:21 -04:00
|
|
|
*** Modules/pycpp.cxx.orig Fri Oct 12 16:37:36 2001
|
|
|
|
--- Modules/pycpp.cxx Fri Oct 12 16:38:20 2001
|
2001-10-12 19:26:38 -04:00
|
|
|
***************
|
2001-10-12 20:41:21 -04:00
|
|
|
*** 228,235 ****
|
|
|
|
*additional << "def " << realname << "(*_args,**_kwargs):\n";
|
2001-10-12 19:26:38 -04:00
|
|
|
*additional << tab4 << "val = " << class_name << "Ptr(apply("
|
|
|
|
<< module << "." << name_construct(realname) << ",_args,_kwargs))\n"
|
2001-10-12 20:41:21 -04:00
|
|
|
! << tab4 << "val.thisown = 1\n"
|
2001-10-12 19:26:38 -04:00
|
|
|
! << tab4 << "return val\n\n";
|
|
|
|
}
|
|
|
|
// Patch up the documentation entry
|
|
|
|
if (doc_entry) {
|
2001-10-12 20:41:21 -04:00
|
|
|
--- 228,236 ----
|
|
|
|
*additional << "def " << realname << "(*_args,**_kwargs):\n";
|
2001-10-12 19:26:38 -04:00
|
|
|
*additional << tab4 << "val = " << class_name << "Ptr(apply("
|
|
|
|
<< module << "." << name_construct(realname) << ",_args,_kwargs))\n"
|
2001-10-12 20:41:21 -04:00
|
|
|
! << tab4 << "val.thisown = 1\n";
|
2001-10-12 19:26:38 -04:00
|
|
|
! emitAddPragmas(*additional, realname, tab4);
|
|
|
|
! *additional << tab4 << "return val\n\n";
|
|
|
|
}
|
|
|
|
// Patch up the documentation entry
|
|
|
|
if (doc_entry) {
|