Changes in src/tests/coroutine.c [17af7d1:c3acb841]
- File:
-
- 1 edited
-
src/tests/coroutine.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/tests/coroutine.c
r17af7d1 rc3acb841 4 4 struct Fibonacci { 5 5 int fn; // used for communication 6 coroutine_desc __cor;6 coroutine_desc c; 7 7 }; 8 8 … … 12 12 13 13 coroutine_desc* get_coroutine(Fibonacci* this) { 14 return &this-> __cor;14 return &this->c; 15 15 } 16 16 … … 18 18 #ifdef MORE_DEBUG 19 19 sout | "Starting main of coroutine " | this | endl; 20 sout | "Started from " | this-> __cor.last | endl;20 sout | "Started from " | this->c.last | endl; 21 21 #endif 22 22 int fn1, fn2; // retained between resumes
Note:
See TracChangeset
for help on using the changeset viewer.