summaryrefslogtreecommitdiff
path: root/Examples/java/enum
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2003-04-03 12:11:55 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2003-04-03 12:11:55 +0000
commit9c8a3d61deecee234de724104507174722eb719f (patch)
treec4391ae8490e35379dbf54c241da9c91f098b998 /Examples/java/enum
parente2c2ba77d6e374520847dc368f653952f1726978 (diff)
downloadswig-9c8a3d61deecee234de724104507174722eb719f.tar.gz
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
Diffstat (limited to 'Examples/java/enum')
-rw-r--r--Examples/java/enum/example.i3
1 files changed, 2 insertions, 1 deletions
diff --git a/Examples/java/enum/example.i b/Examples/java/enum/example.i
index 4c873824c..fb6568943 100644
--- a/Examples/java/enum/example.i
+++ b/Examples/java/enum/example.i
@@ -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 */