2021-10-27 08:53:58 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <string_view>
|
|
|
|
|
2022-01-01 13:20:34 +00:00
|
|
|
#if __cplusplus >= 202002L
|
|
|
|
# include <co_generator_t.h>
|
|
|
|
#else
|
|
|
|
# include <boost/coroutine2/all.hpp>
|
|
|
|
#endif
|
2021-12-08 19:54:53 +00:00
|
|
|
|
2021-10-27 08:53:58 +00:00
|
|
|
#include "opcode_test_suite_t.h"
|
|
|
|
|
|
|
|
class processor_test_suite_t final {
|
|
|
|
private:
|
|
|
|
std::string m_location;
|
|
|
|
|
|
|
|
public:
|
|
|
|
processor_test_suite_t(std::string location) noexcept;
|
|
|
|
|
|
|
|
std::string_view location() const noexcept { return m_location; }
|
|
|
|
|
2022-01-01 13:20:34 +00:00
|
|
|
#if __cplusplus >= 202002L
|
2021-12-17 21:08:10 +00:00
|
|
|
[[nodiscard]] EightBit::co_generator_t<opcode_test_suite_t> generator();
|
2022-01-01 13:20:34 +00:00
|
|
|
#else
|
|
|
|
void generator(boost::coroutines2::coroutine<opcode_test_suite_t>::push_type& sink);
|
|
|
|
#endif
|
2021-10-27 08:53:58 +00:00
|
|
|
};
|