Skip to content

Commit b60184f

Browse files
committed
fixup! src: use struct as arguments to node::Assert
1 parent 7564e4f commit b60184f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/util.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ void DumpBacktrace(FILE* fp);
126126
#define CHECK(expr) \
127127
do { \
128128
if (UNLIKELY(!(expr))) { \
129+
/* Make sure that this struct does not end up in inline code, but */ \
130+
/* rather in a read-only data section when modifying this code. */ \
129131
static const node::AssertionInfo args = { \
130132
__FILE__, __LINE__, #expr, PRETTY_FUNCTION_NAME \
131133
}; \

0 commit comments

Comments
 (0)