Use the system angle brackets for %include
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7871 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
55a48adb5b
commit
cfdad24993
52 changed files with 132 additions and 134 deletions
|
|
@ -22,7 +22,7 @@
|
|||
#include <stdexcept>
|
||||
%}
|
||||
|
||||
%include std_except.i
|
||||
%include <std_except.i>
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -46,6 +46,16 @@
|
|||
#define SWIG_Error(code, msg) PyErr_SetString(SWIG_Python_ErrorType(code), msg)
|
||||
#define SWIG_fail goto fail
|
||||
|
||||
/*
|
||||
Helper for static pointer initialization for both C and C++ code, for example
|
||||
static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
|
||||
*/
|
||||
#ifdef __cplusplus
|
||||
#define SWIG_STATIC_POINTER(var) var
|
||||
#else
|
||||
#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
|
||||
#endif
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
* Pointer declarations
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
%include <typemaps/fragments.swg>
|
||||
|
||||
/* Look for user fragments file. */
|
||||
%include "pyfragments.swg"
|
||||
%include <pyfragments.swg>
|
||||
|
||||
/* Python fragments for fundamental types */
|
||||
%include <pyprimtypes.swg>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue