Skip to content

Commit efd75da

Browse files
committed
include stdbool.h in opcode_metadata.h
1 parent 6a3dfb7 commit efd75da

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Python/opcode_metadata.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// Python/bytecodes.c
44
// Do not edit!
55

6+
#include <stdbool.h>
7+
68
#ifndef NEED_OPCODE_METADATA
79
extern int _PyOpcode_num_popped(int opcode, int oparg, bool jump);
810
#else

Tools/cases_generator/generate_cases.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -986,6 +986,9 @@ def write_metadata(self) -> None:
986986
self.out.write_raw(self.from_source_files())
987987
self.out.write_raw(f"// Do not edit!\n")
988988

989+
self.out.write_raw("\n")
990+
self.out.write_raw("#include <stdbool.h>")
991+
self.out.write_raw("\n")
989992

990993
self.write_stack_effect_functions()
991994

0 commit comments

Comments
 (0)