Skip to content

lightweight header-only Lua - C++17 adapter / binding

License

Notifications You must be signed in to change notification settings

lineCode/Lua-Adapter

 
 

Repository files navigation

Lua-Adapter

Use this C++-17 class to bind Lua or even MoonScript to C++.

Usage

LuaAdapter lua{"test.lua"};
int width {0};
lua.Get("width", width);  // width=600

» See more examples.

Compilation

Just

#include "LuaAdapter.hpp"

and compile your program

$ g++-8 your_program.cpp -std=c++17 -llua -ldl

Requirements

Troubleshooting

If apt-get install g++-8 does not work on your Debian, try add-apt-repository ppa:ubuntu-toolchain-r/test && apt-get update first.

If g++-8 is not available on your system, you can try an older version of Lua-Adapter.

About

lightweight header-only Lua - C++17 adapter / binding

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 99.7%
  • Lua 0.3%