Insert a workaround for c_delete and c_delete_function for v8.

This commit is contained in:
Oliver Buchtala 2014-03-31 02:59:33 +02:00
commit a8c3f85378
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -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; }