summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNishant Gupta <nish.gupta01@gmail.com>2016-08-04 17:09:29 +0530
committerNishant Gupta <nish.gupta01@gmail.com>2016-08-04 17:09:29 +0530
commit1e7c0cd9d8706e31fcc609faf399ee6975e545f5 (patch)
tree5503055840b1807a2a04a923adc41c4b8522d6fc
parentd7689f9833ca42760aa91eff31d63067fbd8c293 (diff)
downloadswig-1e7c0cd9d8706e31fcc609faf399ee6975e545f5.tar.gz
Fix for enums
-rw-r--r--Source/Modules/hhvm.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Modules/hhvm.cxx b/Source/Modules/hhvm.cxx
index 3f5543f1a..7dfcff920 100644
--- a/Source/Modules/hhvm.cxx
+++ b/Source/Modules/hhvm.cxx
@@ -311,6 +311,8 @@ public:
SwigType *type = Getattr(n, "type");
String *rawval = Getattr(n, "rawval");
String *value = rawval ? rawval : Getattr(n, "value");
+ String *cppvalue = Getattr(n, "cppvalue");
+ if (cppvalue) value = cppvalue;
String *tm;
if (!addSymbol(iname, n))