runners: Added BENCH_INCLUDE include guards

When BENCH_INCLUDE is defined, bench_defines.h should behave like a
normal header file. This includes include guards in case the header file
is included multiple times.
This commit is contained in:
Christopher Haster
2026-02-12 02:38:39 -06:00
parent 34026948ef
commit f09ea3c05a
+5
View File
@@ -2,12 +2,17 @@
#ifdef BENCH_INCLUDE #ifdef BENCH_INCLUDE
#ifndef BENCH_DEFINES_H
#define BENCH_DEFINES_H
// DISK_GEOMETRY controls which simulation we use // DISK_GEOMETRY controls which simulation we use
// 0 => NOR flash (the default) // 0 => NOR flash (the default)
// 1 => NAND flash // 1 => NAND flash
#define DISK_MAP(define) \ #define DISK_MAP(define) \
((DISK_GEOMETRY == 0) ? NOR_##define \ ((DISK_GEOMETRY == 0) ? NOR_##define \
: NAND_##define) : NAND_##define)
#endif
#endif #endif
// preconfigured defines that control how benches run // preconfigured defines that control how benches run