add __cplusplus case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6343 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
9742e2ecca
commit
97f01d158f
1 changed files with 15 additions and 0 deletions
|
|
@ -1,5 +1,20 @@
|
||||||
%module preproc
|
%module preproc
|
||||||
|
|
||||||
|
/* check __cplusplus case */
|
||||||
|
%header
|
||||||
|
%{
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C"
|
||||||
|
{
|
||||||
|
#endif /* __cplusplus */
|
||||||
|
/* C code */
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
|
%}
|
||||||
|
|
||||||
|
|
||||||
/* This interface file tests whether SWIG's extended C
|
/* This interface file tests whether SWIG's extended C
|
||||||
preprocessor is working right.
|
preprocessor is working right.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue