Use Lua 5.3+ in your C++ program.
#include "LuaAdapter.hpp"
int main(){
LuaAdapter lua{"test.lua"}; // load lua-file
int width {0};
lua.Get("width", width); // width=600
return 0;
}$ g++ the_program_above.cpp -std=c++17 -llua -ldl| Name | Name | Last commit date | ||
|---|---|---|---|---|
Use Lua 5.3+ in your C++ program.
#include "LuaAdapter.hpp"
int main(){
LuaAdapter lua{"test.lua"}; // load lua-file
int width {0};
lua.Get("width", width); // width=600
return 0;
}$ g++ the_program_above.cpp -std=c++17 -llua -ldl