Insert a workaround for c_delete and c_delete_function for v8.
This commit is contained in:
parent
23bbb59f8e
commit
a8c3f85378
2 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
#pragma SWIG nowarn=SWIGWARN_PARSE_KEYWORD
|
||||
|
||||
#if !defined(SWIGOCTAVE) /* Octave compiles wrappers as C++ */
|
||||
#if !defined(SWIGOCTAVE) && !defined(SWIG_JAVASCRIPT_V8) /* Octave and Javascript/v8 compiles wrappers as C++ */
|
||||
|
||||
%inline %{
|
||||
struct delete {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
/* check C++ delete keyword is okay in C wrappers */
|
||||
|
||||
#if !defined(SWIGOCTAVE) /* Octave compiles wrappers as C++ */
|
||||
#if !defined(SWIGOCTAVE) && !defined(SWIG_JAVASCRIPT_V8) /* Octave and Javascript/v8 compiles wrappers as C++ */
|
||||
|
||||
%inline %{
|
||||
double delete(double d) { return d; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue