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:
Marcelo Matus 2004-10-06 08:37:55 +00:00
commit 97f01d158f

View file

@ -1,5 +1,20 @@
%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
preprocessor is working right.