Skip to content

Commit c0293ff

Browse files
committed
Make enable macro cover more code
1 parent 867a9a4 commit c0293ff

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

lib/include/pl/helpers/sort_checks.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22

3-
//#define ENABLE_STD_SORT_CHECKS
3+
#define ENABLE_STD_SORT_CHECKS
44

55
#ifdef ENABLE_STD_SORT_CHECKS
66
#include <cstddef>

lib/source/pl/helpers/sort_checks.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#include <pl/helpers/sort_checks.hpp>
2+
3+
#ifdef ENABLE_STD_SORT_CHECKS
24
#include <cstddef>
35
#include <iostream>
46

@@ -19,3 +21,5 @@ void transitivityError(const char *pMsg, size_t b_idx, size_t e_idx, size_t x_id
1921
}
2022

2123
} // namespace pl::hlp
24+
25+
#endif // ENABLE_STD_SORT_CHECKS

0 commit comments

Comments
 (0)