mirror of
https://github.com/TREX-CoE/trexio.git
synced 2025-01-03 10:06:01 +01:00
add a note on alternative way to re-define ill-defined constants
This commit is contained in:
parent
46eec89774
commit
678f90f86a
@ -32,12 +32,14 @@
|
|||||||
/* Does not work for arrays (SIGSEGV)
|
/* Does not work for arrays (SIGSEGV)
|
||||||
%apply double *OUTPUT { double* const dataset };
|
%apply double *OUTPUT { double* const dataset };
|
||||||
*/
|
*/
|
||||||
/* TREXIO back ends and exit codes can be redefines in the SWIG target language using %constant.
|
/* TREXIO back ends and exit codes can be redefined in the SWIG target language using %ignore and further #define statements
|
||||||
TREXIO back ends and exit codes can be redefines in the SWIG target languageProbably not a good idea since this overwrite existing macros definitions.
|
(instead of disabling the type cast in the trexio.h file)
|
||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
%constant int TREXIO_HDF5 = 0;
|
%ignore TREXIO_HDF5; // Ignore a macro in the header file
|
||||||
%constant int TREXIO_TEXT = 1;
|
%ignore TREXIO_TEST; // Ignore a macro in the header file
|
||||||
|
#define TREXIO_HDF5 0
|
||||||
|
#define TREXIO_TEXT 0
|
||||||
*/
|
*/
|
||||||
/* This tells SWIG to treat char ** as a special case */
|
/* This tells SWIG to treat char ** as a special case */
|
||||||
%typemap(in) char ** {
|
%typemap(in) char ** {
|
||||||
|
Loading…
Reference in New Issue
Block a user