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

+2 -1
View File
@@ -42,8 +42,9 @@ typedef struct {
// Use switch cases for coroutine suspension points, similar to the technique
// in https://www.chiark.greenend.org.uk/~sgtatham/coroutines.html
//
// We use a trivial macro instead of an explicit assignment and case statement
// We use trivial macros instead of an explicit assignment and case statement
// so that clang-format doesn't get confused by the unusual "case"s.
#define PUFFS_BASE__COROUTINE_SUSPENSION_POINT_0 case 0:;
#define PUFFS_BASE__COROUTINE_SUSPENSION_POINT(n) \
coro_susp_point = n; \
case n:;