From 14887b4dd02ccea43636d7d927fdcebbefce066b Mon Sep 17 00:00:00 2001 From: edef Date: Wed, 15 Apr 2015 22:40:16 -0400 Subject: [PATCH] Valgrind doesn't actually care about the order --- src/valgrind.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/valgrind.c b/src/valgrind.c index 8bc9b42..05d7af5 100644 --- a/src/valgrind.c +++ b/src/valgrind.c @@ -8,8 +8,9 @@ typedef uint32_t valgrind_stack_id_t; -// Register a stack with Valgrind. start < end. Returns an integer ID that can +// Register a stack with Valgrind. Returns an integer ID that can // be used to deregister the stack when it's deallocated. +// `start < end`, though Valgrind will happily accept either. valgrind_stack_id_t valgrind_stack_register(const void *start, const void *end) { return VALGRIND_STACK_REGISTER(start, end); }