mirror of https://github.com/swig/swig
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
|
@ -1,6 +1,9 @@
|
|||
/* File : example.i */
|
||||
%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 */
|
||||
|
||||
#define ICONST 42
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
#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 */
|
||||
|
||||
|
|
Loading…
Reference in New Issue