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:
William S Fulton 2003-04-03 12:11:55 +00:00
parent e2c2ba77d6
commit 9c8a3d61de
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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 */