Skip to content

Commit 9317fee

Browse files
committed
unix/coverage: Move coverage #if guard back to top of file.
1 parent 50e14ca commit 9317fee

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

unix/coverage.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
#include "py/formatfloat.h"
1212
#include "py/stream.h"
1313

14+
#if defined(MICROPY_UNIX_COVERAGE)
15+
1416
// stream testing object
1517
typedef struct _mp_obj_streamtest_t {
1618
mp_obj_base_t base;
@@ -130,9 +132,6 @@ STATIC const mp_obj_type_t mp_type_stest_textio2 = {
130132
.locals_dict = (mp_obj_dict_t*)&rawfile_locals_dict2,
131133
};
132134

133-
134-
#if defined(MICROPY_UNIX_COVERAGE)
135-
136135
// str/bytes objects without a valid hash
137136
STATIC const mp_obj_str_t str_no_hash_obj = {{&mp_type_str}, 0, 10, (const byte*)"0123456789"};
138137
STATIC const mp_obj_str_t bytes_no_hash_obj = {{&mp_type_bytes}, 0, 10, (const byte*)"0123456789"};

0 commit comments

Comments
 (0)