Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 373 Bytes

File metadata and controls

22 lines (16 loc) · 373 Bytes

Lua-Adapter

Use Lua 5.3+ in your C++ program.

Usage

#include "LuaAdapter.hpp"

int main(){
  LuaAdapter lua{"test.lua"}; // load lua-file

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

  return 0;
}

Build and test Lua-Adapter using g++

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