| 19 | namespace wabt { |
| 20 | |
| 21 | BinarySectionOrder GetSectionOrder(BinarySection sec) { |
| 22 | switch (sec) { |
| 23 | #define V(Name, name, code) \ |
| 24 | case BinarySection::Name: \ |
| 25 | return BinarySectionOrder::Name; |
| 26 | WABT_FOREACH_BINARY_SECTION(V) |
| 27 | #undef V |
| 28 | default: |
| 29 | WABT_UNREACHABLE; |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | const char* GetSectionName(BinarySection sec) { |
| 34 | switch (sec) { |