Remove java specifics from testcase
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12212 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
122bc852f9
commit
e3092a6150
2 changed files with 15 additions and 4 deletions
|
|
@ -45,16 +45,16 @@ public class preproc_line_file_runme {
|
||||||
if (preproc_line_file.MYLINE2 != 30)
|
if (preproc_line_file.MYLINE2 != 30)
|
||||||
throw new RuntimeException("preproc failure");
|
throw new RuntimeException("preproc failure");
|
||||||
|
|
||||||
if (SillyStruct.LINE_NUMBER != 41)
|
if (SillyStruct.LINE_NUMBER != 52)
|
||||||
throw new RuntimeException("preproc failure");
|
throw new RuntimeException("preproc failure");
|
||||||
|
|
||||||
if (SillyMacroClass.LINE_NUM != 45)
|
if (SillyMacroClass.LINE_NUM != 56)
|
||||||
throw new RuntimeException("preproc failure");
|
throw new RuntimeException("preproc failure");
|
||||||
|
|
||||||
if (SillyMultipleMacroStruct.LINE_NUM != 70)
|
if (SillyMultipleMacroStruct.LINE_NUM != 81)
|
||||||
throw new RuntimeException("preproc failure");
|
throw new RuntimeException("preproc failure");
|
||||||
|
|
||||||
if (preproc_line_file.INLINE_LINE != 76)
|
if (preproc_line_file.INLINE_LINE != 87)
|
||||||
throw new RuntimeException("preproc failure");
|
throw new RuntimeException("preproc failure");
|
||||||
|
|
||||||
String inlineFile = preproc_line_file.INLINE_FILE;
|
String inlineFile = preproc_line_file.INLINE_FILE;
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,18 @@ const int NUMBER_UNIQUE(thing) = -2; /* resolves to thing28 */
|
||||||
|
|
||||||
#define MYLINE2 __LINE__
|
#define MYLINE2 __LINE__
|
||||||
|
|
||||||
|
#if defined (SWIGJAVA)
|
||||||
%javaconst(1);
|
%javaconst(1);
|
||||||
|
#elif defined(SWIGCSHARP)
|
||||||
|
%csconst(1);
|
||||||
|
#else
|
||||||
|
%ignore LINE_NUMBER;
|
||||||
|
%ignore LINE_NUM;
|
||||||
|
/* spare space */
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
%{
|
%{
|
||||||
struct SillyStruct {
|
struct SillyStruct {
|
||||||
int num;
|
int num;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue