summaryrefslogtreecommitdiff
path: root/quantum/variable_trace.h
diff options
context:
space:
mode:
authorWilliam Chang <william@factual.com>2019-11-20 22:17:07 -0800
committerWilliam Chang <william@factual.com>2019-11-20 22:17:07 -0800
commite7f4d56592b3975c38af329e77b4efd9108495e8 (patch)
tree0a416bccbf70bfdbdb9ffcdb3bf136b47378c014 /quantum/variable_trace.h
parent71493b2f9bbd5f3d18373c518fa14ccafcbf48fc (diff)
parent8416a94ad27b3ff058576f09f35f0704a8b39ff3 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'quantum/variable_trace.h')
-rw-r--r--quantum/variable_trace.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/quantum/variable_trace.h b/quantum/variable_trace.h
index dacc13858d..26b810d3cd 100644
--- a/quantum/variable_trace.h
+++ b/quantum/variable_trace.h
@@ -26,20 +26,19 @@
// Start tracing a variable at the memory address addr
// The name can be anything and is used only for reporting
// The size should usually be the same size as the variable you are interested in
-#define ADD_TRACED_VARIABLE(name, addr, size) \
- add_traced_variable(PSTR(name), (void*)addr, size, PSTR(__FILE__), __LINE__)
+# define ADD_TRACED_VARIABLE(name, addr, size) add_traced_variable(PSTR(name), (void*)addr, size, PSTR(__FILE__), __LINE__)
// Stop tracing the variable with the given name
-#define REMOVE_TRACED_VARIABLE(name) remove_traced_variable(PSTR(name), PSTR(__FILE__), __LINE__)
+# define REMOVE_TRACED_VARIABLE(name) remove_traced_variable(PSTR(name), PSTR(__FILE__), __LINE__)
// Call to get messages when the variable has been changed
-#define VERIFY_TRACED_VARIABLES() verify_traced_variables(PSTR(__FILE__), __LINE__)
+# define VERIFY_TRACED_VARIABLES() verify_traced_variables(PSTR(__FILE__), __LINE__)
#else
-#define ADD_TRACED_VARIABLE(name, addr, size)
-#define REMOVE_TRACED_VARIABLE(name)
-#define VERIFY_TRACED_VARIABLES()
+# define ADD_TRACED_VARIABLE(name, addr, size)
+# define REMOVE_TRACED_VARIABLE(name)
+# define VERIFY_TRACED_VARIABLES()
#endif