| 123456789101112131415161718192021222324 |
- #include <luwra.hpp>
- #include <string>
- #include <iostream>
- 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<std::string>(state, -1) << std::endl;
- return 1;
- }
- return 0;
- }
|