commit | b2e5794870eb4728ddfaafc0f79a40299576434f | [log] [tgz] |
---|---|---|
author | Barry Warsaw <barry@python.org> | Thu Sep 14 18:13:16 2017 -0700 |
committer | GitHub <noreply@github.com> | Thu Sep 14 18:13:16 2017 -0700 |
tree | b625687bc81fd33c04fd83820e1276db92d9fa1a | |
parent | d384a81f557dab0b142bfcc9850bc68df46496ef [diff] [blame] |
bpo-31338 (#3374) * Add Py_UNREACHABLE() as an alias to abort(). * Use Py_UNREACHABLE() instead of assert(0) * Convert more unreachable code to use Py_UNREACHABLE() * Document Py_UNREACHABLE() and a few other macros.
diff --git a/Python/wordcode_helpers.h b/Python/wordcode_helpers.h index cce81c1..c8f7a0f 100644 --- a/Python/wordcode_helpers.h +++ b/Python/wordcode_helpers.h
@@ -39,6 +39,6 @@ *codestr++ = PACKOPARG(opcode, oparg & 0xff); break; default: - assert(0); + Py_UNREACHABLE(); } }