Conflicts: .project COPYRIGHT Doc/Manual/style.css Examples/Makefile.in Examples/test-suite/common.mk Lib/typemaps/strings.swg Makefile.in Source/DOH/fio.c Source/Makefile.am Source/Modules/emit.cxx Source/Modules/javascript.cxx configure.in git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13764 626c5289-ae23-0410-ae9c-e8d60b6d4f22
26 lines
398 B
JavaScript
26 lines
398 B
JavaScript
var f = new cpp_enum.Foo()
|
|
|
|
if(f.hola != cpp_enum.Hello){
|
|
print(f.hola);
|
|
throw "Error";
|
|
}
|
|
|
|
f.hola = cpp_enum.Foo.Hi
|
|
if(f.hola != cpp_enum.Foo.Hi){
|
|
print(f.hola);
|
|
throw "Error";
|
|
}
|
|
|
|
f.hola = cpp_enum.Hello
|
|
|
|
if(f.hola != cpp_enum.Hello){
|
|
print(f.hola);
|
|
throw "Error";
|
|
}
|
|
|
|
cpp_enum.Foo.hi = cpp_enum.Hello
|
|
if(cpp_enum.Foo.hi != cpp_enum.Hello){
|
|
print(cpp_enum.Foo.hi);
|
|
throw "Error";
|
|
}
|
|
|