Support $descriptor() macro in fragments

Closes #36
This commit is contained in:
Jesus Lopez 2013-04-15 09:31:23 -07:00 committed by William S Fulton
commit 9be3235988
3 changed files with 23 additions and 0 deletions

View file

@ -60,6 +60,8 @@ void Swig_fragment_register(Node *fragment) {
}
Setfile(ccode, Getfile(fragment));
Setline(ccode, Getline(fragment));
/* Replace $descriptor() macros */
Swig_cparse_replace_descriptor(ccode);
Setattr(fragments, name, ccode);
if (debug)
Printf(stdout, "registering fragment %s %s\n", name, section);