Mercurial > pub > dyncall > bindings
diff lua/luadc/README.txt @ 0:0cfcc391201f
initial from svn dyncall-1745
author | Daniel Adler |
---|---|
date | Thu, 19 Mar 2015 22:26:28 +0100 |
parents | |
children | 739c40f35a6a |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lua/luadc/README.txt Thu Mar 19 22:26:28 2015 +0100 @@ -0,0 +1,27 @@ +lua bindings for dyncall +======================== + +1. loading the lua C extension + + require "package" + f = package.loadlib("luadc","luadc_open") + f() + +2. using the C extension + + libhandle = dc.load("libname") + f = dc.find(libhandle,"symbol") + +3. change calling convention mode + + dc.mode(mode) + + mode is dc.C_DEFAULT, dc.C_X86_WIN32_STD, dc.C_X86_WIN32_FAST, ... + +4. make a call + + dc.call(f, signature, args... ) + + + +