Don't emit functions added by %extend into C structs
This is never going to work and just results in generating uncompilable code. In principle, we could either generate wrappers for these functions while still handling the struct as a plain C struct, or switch to generating class-like wrappers for it if it's %extended with any functions, but for now just ignore them as this is the simplest thing to do. Incidentally, this makes the default_args_c test pass again now, after the last merge with master pulled in such %extend directives into it.
This commit is contained in:
parent
690bf8e020
commit
b0d99a1cc3
2 changed files with 11 additions and 3 deletions
|
|
@ -256,6 +256,7 @@
|
|||
/* please leave 740-759 free for Python */
|
||||
|
||||
#define WARN_C_TYPEMAP_CTYPE_UNDEF 760
|
||||
#define WARN_C_UNSUPPORTTED 779
|
||||
|
||||
/* please leave 760-779 free for C */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue