Fix patch: correct line numbers for unit_test.h TEST_BEGIN override

This commit is contained in:
afiqzudinhadi 2026-06-22 23:12:51 +08:00
parent 752d9e2c7b
commit d024087715

View file

@ -1,10 +1,7 @@
--- a/unit_test.h
+++ b/unit_test.h
@@ -53,9 +53,10 @@
@@ -56,8 +56,8 @@
#else
+// Dead template: body parsed but never instantiated → never compiled
#define TEST_BEGIN__(text, file, line) \
- namespace UnitTest##line { \
- static void Test() {
@ -12,4 +9,3 @@
+ template<bool _dummy=false> static void Test() {
#define TEST_END \
} \