twoface

A Lua 5.1 style ABI on top of lua52.dll

This project is maintained by corsix

The Problem


Lua C libraries built against Lua 5.1 expect the Lua 5.1 ABI, whereas C programs which use Lua 5.2 expect the Lua 5.2 ABI. These two ABIs are significantly different, meaning that 5.2 programs cannot a-priori load 5.1 C libraries unless they are recompiled for 5.2.

The Solution


twoface is a DLL which consumes the 5.2 ABI and presents a 5.1 style ABI, thereby allowing a 5.2 program to load most 5.1 C libraries without the need for any recompilation.

Known Limitations

Differences to the actual 5.1 ABI