Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/concurrency/coroutines

    r8118303 rc84e80a  
    2626// Anything that is resumed is a coroutine.
    2727trait is_coroutine(dtype T) {
    28       void co_main(T * this);
     28      void main(T * this);
    2929      coroutine * get_coroutine(T * this);
    3030};
     31
     32#define DECL_COROUTINE(X) static inline coroutine* get_coroutine(X* this) { return &this->c; } void main(X* this);
    3133
    3234//-----------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.