make %callback more uniform and usable
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6435 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
76f0a08ebf
commit
c7982bbdc8
6 changed files with 35 additions and 16 deletions
|
|
@ -502,8 +502,17 @@ public:
|
|||
|
||||
|
||||
int functionHandler(Node *n) {
|
||||
if (Getattr(n,"feature:python:callback")) {
|
||||
Setattr(n,"feature:callback","%s_cb_ptr");
|
||||
String *pcb = Getattr(n,"feature:python:callback");
|
||||
if (pcb && (Strcmp(pcb,"0") == 0)) {
|
||||
Setattr(n,"feature:python:callback","");
|
||||
pcb = 0;
|
||||
}
|
||||
if (pcb) {
|
||||
if (Strcmp(pcb,"1") == 0) {
|
||||
Setattr(n,"feature:callback","%s_cb_ptr");
|
||||
} else {
|
||||
Setattr(n,"feature:callback",pcb);
|
||||
}
|
||||
autodoc_l dlevel = autodoc_level(Getattr(n, "feature:autodoc"));
|
||||
if (dlevel != NO_AUTODOC && dlevel > TYPES_AUTODOC) {
|
||||
Setattr(n,"feature:autodoc","1");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue