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:
Dave Beazley 2003-03-11 13:37:51 +00:00
commit e6cb11e9ba

View file

@ -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) {