File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 7
7
8
8
%module " flc"
9
9
10
+ #if defined(SWIGIMPORTED) && !defined(SWIGIMPORTED)
11
+ #error "To import the FLC module correctly, use ``%include \"import_flc.i\"``"
12
+ #endif
13
+
10
14
%define %flc_add_header
11
15
%insert(" fbegin" ) %{
12
16
! Flibcpp project, https:// github.com/swig-fortran/flibcpp
Original file line number Diff line number Diff line change 5
5
* Distributed under an MIT open source license: see LICENSE for details.
6
6
*/
7
7
8
- #ifdef SWIGIMPORTED
9
- #error "To use this header, %include "import_flc.i", don't %import it"
8
+ // Make sure that the downstream module isn't doing ``%import "import_flc.i"``
9
+ // or ``%import "flc.i"``: only ``%include "import_flc.i"``
10
+ #ifndef SWIGIMPORTED
11
+ #define FLC_SWIGIMPORTED
10
12
#endif
11
13
12
14
// Set up macros, etc.
You can’t perform that action at this time.
0 commit comments