diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2022-02-27 20:39:54 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2022-02-27 20:39:54 +0200 |
commit | fc1410099d6ccbb72adb54ecffd0711348706ca4 (patch) | |
tree | d04175556415fff6bcf66f48fc05c4da5f2d4908 /profile.c | |
parent | 7acb038bd54f81fb95dac70954e5c1b8ec07a086 (diff) | |
download | egawk-fc1410099d6ccbb72adb54ecffd0711348706ca4.tar.gz egawk-fc1410099d6ccbb72adb54ecffd0711348706ca4.tar.bz2 egawk-fc1410099d6ccbb72adb54ecffd0711348706ca4.zip |
Have cant_happen() give more information.
Diffstat (limited to 'profile.c')
-rw-r--r-- | profile.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -373,8 +373,7 @@ pprint(INSTRUCTION *startp, INSTRUCTION *endp, int flags) break; default: - fprintf(stderr, "Got unexpected type %s\n", nodetype2str(m->type)); - cant_happen(); + cant_happen("got unexpected type %s", nodetype2str(m->type)); } switch (pc->opcode) { @@ -581,7 +580,7 @@ cleanup: case Op_K_delete_loop: /* Efficency hack not in effect because of exec_count instruction */ - cant_happen(); + cant_happen("unexpected opcode %s", opcode2str(pc->opcode)); break; case Op_in_array: @@ -1219,7 +1218,7 @@ cleanup: break; default: - cant_happen(); + cant_happen("unexpected opcode %s", opcode2str(pc->opcode)); } if (pc == endp) |