Removed deprecated pragmas
Use %javaconst(1) for enums and constants git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4659 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e2c2ba77d6
commit
9c8a3d61de
2 changed files with 5 additions and 1 deletions
|
|
@ -1,6 +1,9 @@
|
||||||
/* File : example.i */
|
/* File : example.i */
|
||||||
%module example
|
%module example
|
||||||
|
|
||||||
|
/* Force the generated Java code to use the C constant values rather than making a JNI call */
|
||||||
|
%javaconst(1);
|
||||||
|
|
||||||
/* A few preprocessor macros */
|
/* A few preprocessor macros */
|
||||||
|
|
||||||
#define ICONST 42
|
#define ICONST 42
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@
|
||||||
#include "example.h"
|
#include "example.h"
|
||||||
%}
|
%}
|
||||||
|
|
||||||
%pragma make_default
|
/* Force the generated Java code to use the C enum values rather than making a JNI call */
|
||||||
|
%javaconst(1);
|
||||||
|
|
||||||
/* Let's just grab the original header file here */
|
/* Let's just grab the original header file here */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue