Add c++11 strongly typed enum support for Guile

This commit is contained in:
William S Fulton 2014-11-28 23:27:22 +00:00
commit cf3be359cf
2 changed files with 4 additions and 4 deletions

View file

@ -1350,7 +1350,7 @@ public:
Printv(f_header, tm, "\n", NIL);
} else {
// Create variable and assign it a value
Printf(f_header, "static %s = %s;\n", SwigType_str(type, var_name), rvalue);
Printf(f_header, "static %s = (%s)%s;\n", SwigType_str(type, var_name), type, rvalue);
}
{
/* Hack alert: will cleanup later -- Dave */