#include #include #include using namespace luwra; int main() { StateWrapper state; state.loadStandardLibrary(); state["foo"] = 1337; int r = state.runString( "print(foo)" ); if (r != LUA_OK) { std::cerr << read(state, -1) << std::endl; return 1; } return 0; }