// Prints the conformance results produced by the compiled core.lua module. #include #include #include "core.hpp" int main() { try { luacpp::State state; luacpp::Value results = state.require("core"); int n = static_cast(results.length()); for (int i = 1; i <= n; ++i) { std::cout << results.at(i).as_string() << "\n"; } } catch (const std::exception& error) { std::cerr << "conformance: " << error.what() << "\n"; return 1; } return 0; }