Added $descriptor() support to code supplied to methods in %extend sections.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4509 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
485e5f8cae
commit
e6cb11e9ba
1 changed files with 10 additions and 0 deletions
|
|
@ -695,6 +695,16 @@ int Language::cDeclaration(Node *n) {
|
|||
/* If in import mode, we proceed no further */
|
||||
if (ImportMode) return SWIG_NOWRAP;
|
||||
|
||||
/* If we're in extend mode and there is code, replace the $descriptor macros */
|
||||
if (Getattr(n,"feature:extend")) {
|
||||
String *code = Getattr(n,"code");
|
||||
if (code) {
|
||||
Setfile(code,Getfile(n));
|
||||
Setline(code,Getline(n));
|
||||
Swig_cparse_replace_descriptor(code);
|
||||
}
|
||||
}
|
||||
|
||||
/* Overloaded symbol check */
|
||||
over = Swig_symbol_isoverloaded(n);
|
||||
if (!overloading) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue