update swig on windows

This commit is contained in:
Bassem Girgis
2019-08-04 21:38:19 -05:00
parent 8414b7136b
commit 76ad52be58
5943 changed files with 91790 additions and 71892 deletions

View File

@@ -0,0 +1,32 @@
require("import") -- the import fn
import("primitive_ref") -- import code
pr=primitive_ref --alias
assert(pr.ref_int(3)==3)
assert(pr.ref_uint(3) == 3)
assert(pr.ref_short(3) == 3)
assert(pr.ref_ushort(3) == 3)
assert(pr.ref_long(3) == 3)
assert(pr.ref_ulong(3) == 3)
assert(pr.ref_schar(3) == 3)
assert(pr.ref_uchar(3) == 3)
assert(pr.ref_float(3.5) == 3.5)
assert(pr.ref_double(3.5) == 3.5)
assert(pr.ref_bool(true) == true)
assert(pr.ref_char('x') == 'x')
assert(pr.ref_over(0) == 0)
a=pr.A(12)
assert(pr.ref_over(a)==12)