Remove unreachable coroutine suspension code.

This commit is contained in:
Nigel Tao committed 2017-11-03 11:57:07 +11:00
1 parent 346b3d4107
commit eefe590e04
5 files changed
+27 -24

No files matched your search

+1 -1
View File
@@ -230,7 +230,7 @@ func (g *gen) writeFuncImplBodyResume(b *buffer) error {
// https://www.chiark.greenend.org.uk/~sgtatham/coroutines.html
//
// The matching } is written below. See "Close the coroutine switch".
b.writes("switch (coro_susp_point) {\nPUFFS_BASE__COROUTINE_SUSPENSION_POINT(0);\n\n")
b.writes("switch (coro_susp_point) {\nPUFFS_BASE__COROUTINE_SUSPENSION_POINT_0;\n\n")
}
return nil
}