Files
ANSLibs/swig-4.3.0/Examples/test-suite/javascript/preproc_defined_runme.js

25 lines
415 B
JavaScript
Raw Normal View History

var preproc_defined = require("preproc_defined");
if (preproc_defined.call_checking() != 1) {
throw new Error;
}
d = new preproc_defined.Defined();
d.defined = 10;
preproc_defined.thing(10);
preproc_defined.stuff(10);
preproc_defined.bumpf(10);
if (preproc_defined.a != 2) {
throw new Error;
}
if (preproc_defined.b != 42) {
throw new Error;
}
if (preproc_defined.z != 8) {
throw new Error;
}