cface485dfc224b2d7a9e8c8345777f151f06788
[gem5.git] / ext / pybind11 / tests / test_embed / catch.cpp
1 // The Catch implementation is compiled here. This is a standalone
2 // translation unit to avoid recompiling it for every test change.
3
4 #include <pybind11/embed.h>
5
6 #define CATCH_CONFIG_RUNNER
7 #include <catch.hpp>
8
9 namespace py = pybind11;
10
11 int main(int argc, const char *argv[]) {
12 py::scoped_interpreter guard{};
13 auto result = Catch::Session().run(argc, argv);
14
15 return result < 0xff ? result : 0xff;
16 }