Diogo
Diogo

Reputation: 125

LuaJIT equivalent of wlua.exe

In Windows, I want to know if there is an equivalent way of using LuaJIT like the standard Lua distribution wlua.exe, which is windowless. Or should I compile the modules and use them in a standard Lua interpreter? (not sure if this is possible).

Upvotes: 5

Views: 1168

Answers (2)

daurnimator
daurnimator

Reputation: 4311

LuaDist comes with a wluajit.exe

Upvotes: 0

Ryan Stein
Ryan Stein

Reputation: 8000

Sure, since LuaJIT is ABI-compatible with Lua 5.1, you can swap lua51.dll and lua5.1.dll out, and replace them with the LuaJIT version of lua51.dll. Just copy LuaJIT's lua51.dll into the folder with wlua.exe and make another copy named lua5.1.dll. That should cover everything.

This should be possible with any application that dynamically links to Lua 5.1.

Upvotes: 6

Related Questions