Skip to content

Commit 0c9dc11

Browse files
committed
Use really_inline to help g++ detect initialized variable
1 parent 1ff55c2 commit 0c9dc11

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_macros.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ const char *TRUENULL_JSON = SIMDJSON_BENCHMARK_SMALLDATA_DIR "truenull.json";
1919

2020
// For the ASSERT_EQUAL macro
2121
template<typename T, typename S>
22-
bool equals_expected(T actual, S expected) {
22+
really_inline bool equals_expected(T actual, S expected) {
2323
return actual == T(expected);
2424
}
2525
template<>
26-
bool equals_expected<const char *, const char *>(const char *actual, const char *expected) {
26+
really_inline bool equals_expected<const char *, const char *>(const char *actual, const char *expected) {
2727
return !strcmp(actual, expected);
2828
}
2929

30-
simdjson::error_code to_error_code(simdjson::error_code error) {
30+
really_inline simdjson::error_code to_error_code(simdjson::error_code error) {
3131
return error;
3232
}
3333
template<typename T>
34-
simdjson::error_code to_error_code(const simdjson::simdjson_result<T> &result) {
34+
really_inline simdjson::error_code to_error_code(const simdjson::simdjson_result<T> &result) {
3535
return result.error();
3636
}
3737

0 commit comments

Comments
 (0)