%PDF- %PDF-
| Direktori : /usr/lib/python3/dist-packages/pythran/pythonic/utils/ |
| Current File : //usr/lib/python3/dist-packages/pythran/pythonic/utils/yield.hpp |
#ifndef PYTHRAN_UTILS_YIELD_HPP
#define PYTHRAN_UTILS_YIELD_HPP
#include "pythonic/include/utils/yield.hpp"
/*
* This contains base class for yielders
*/
#include "pythonic/types/generator.hpp"
PYTHONIC_NS_BEGIN
yielder::yielder() : __generator_state(0)
{
}
bool yielder::operator!=(yielder const &other) const
{
return __generator_state != other.__generator_state;
}
bool yielder::operator==(yielder const &other) const
{
return __generator_state == other.__generator_state;
}
PYTHONIC_NS_END
#endif