Mercurial > pub > dyncall > bindings
view lua/luadc/README.txt @ 6:80273969f043
- ruby binding path cleanup, previous version required bindings and dyncall be checked out in same parent directory
author | cslag |
---|---|
date | Sat, 26 Mar 2016 00:12:40 +0100 |
parents | 0cfcc391201f |
children | 739c40f35a6a |
line wrap: on
line source
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... )