%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/thread-self/root/lib/python3/dist-packages/pythran/pythonic/utils/
Upload File :
Create Path :
Current File : //proc/thread-self/root/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

Zerion Mini Shell 1.0