view lua/test/sqrt.lua @ 35:75fe1dec0eb4

- added support for signature-based calling convention switch
author Tassilo Philipp
date Mon, 13 Apr 2020 16:07:56 +0200
parents 0cfcc391201f
children
line wrap: on
line source

clib = dcLoad("msvcrt")
f = dcFind(clib,"sqrt")

x = dcCall(f,"d)d",144)
io.write("result ",x,"\n")

x = dcCall(f,"d)d",225)
io.write("result ",x,"\n")


f = dc("msvcrt:sqrt(d)d")
f()