Fixes for c_delete and c_delete_function tests
This commit is contained in:
parent
7a8dd4bb2d
commit
cdefaaf794
3 changed files with 13 additions and 0 deletions
|
|
@ -2,6 +2,10 @@
|
|||
|
||||
/* check C++ delete keyword is okay in C wrappers */
|
||||
|
||||
#pragma SWIG nowarn=SWIGWARN_PARSE_KEYWORD
|
||||
|
||||
#if !defined(SWIGOCTAVE) /* Octave compiles wrappers as C++ */
|
||||
|
||||
%inline %{
|
||||
struct delete {
|
||||
int delete;
|
||||
|
|
@ -12,3 +16,5 @@ struct delete {
|
|||
%inline %{
|
||||
int delete = 0;
|
||||
%}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -2,6 +2,10 @@
|
|||
|
||||
/* check C++ delete keyword is okay in C wrappers */
|
||||
|
||||
#if !defined(SWIGOCTAVE) /* Octave compiles wrappers as C++ */
|
||||
|
||||
%inline %{
|
||||
double delete(double d) { return d; }
|
||||
%}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue