view lua/luadc/README.txt @ 63:9b6cdffd30dd

- further fixes of inccorect overflow errors for int (and long on LLP64 systems) * prev commit had bugs * added overflow tests for also int, long, long long (for both, lp64 and llp64) - while at it, fixing a reference leak when not using python with utf8 caching
author Tassilo Philipp
date Sun, 19 May 2024 15:33:18 +0200
parents 739c40f35a6a
children
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... )