EightBit/M6502/HarteTest_6502/opcode_test_suite_t.cpp

17 lines
475 B
C++

#include "stdafx.h"
#include "opcode_test_suite_t.h"
opcode_test_suite_t::opcode_test_suite_t(const std::string path) noexcept
: parser_t(path) {}
#if __cplusplus >= 202002L
EightBit::co_generator_t<test_t> opcode_test_suite_t::generator() {
for (const auto element : *this)
co_yield test_t(element);
}
#else
void opcode_test_suite_t::generator(boost::coroutines2::coroutine<test_t>::push_type& sink) {
for (const auto element : *this)
sink(test_t(element));
}
#endif