From 71b94a5b7aaf77455ae3ec782429ed391a8b1f28 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Wed, 17 Mar 2021 13:50:13 -0700 Subject: [PATCH] detect duplicate comment fields --- generate_headers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/generate_headers.py b/generate_headers.py index 9e33e93..7ead2d4 100755 --- a/generate_headers.py +++ b/generate_headers.py @@ -276,6 +276,9 @@ def make_opcodes_dict() -> Dict[str, Dict[str, Any]]: comment = opcode['comment'] if comment not in retval: retval[comment] = opcode + else: + print(f"duplicate comment field: {comment!r}" + f" subdecoder.pattern={subdecoder.pattern}") return retval -- 2.30.2