diff options
| author | skullY <skullydazed@gmail.com> | 2019-08-30 11:19:03 -0700 |
|---|---|---|
| committer | skullydazed <skullydazed@users.noreply.github.com> | 2019-08-30 15:01:52 -0700 |
| commit | b624f32f944acdc59dcb130674c09090c5c404cb (patch) | |
| tree | bc13adbba137d122d9a2c2fb2fafcbb08ac10e25 /quantum/variable_trace.h | |
| parent | 61af76a10d00aba185b8338604171de490a13e3b (diff) | |
| download | qmk_firmware-b624f32f944acdc59dcb130674c09090c5c404cb.tar.gz qmk_firmware-b624f32f944acdc59dcb130674c09090c5c404cb.zip | |
clang-format changes
Diffstat (limited to 'quantum/variable_trace.h')
| -rw-r--r-- | quantum/variable_trace.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/quantum/variable_trace.h b/quantum/variable_trace.h index dacc13858..26b810d3c 100644 --- a/quantum/variable_trace.h +++ b/quantum/variable_trace.h | |||
| @@ -26,20 +26,19 @@ | |||
| 26 | // Start tracing a variable at the memory address addr | 26 | // Start tracing a variable at the memory address addr |
| 27 | // The name can be anything and is used only for reporting | 27 | // The name can be anything and is used only for reporting |
| 28 | // The size should usually be the same size as the variable you are interested in | 28 | // The size should usually be the same size as the variable you are interested in |
| 29 | #define ADD_TRACED_VARIABLE(name, addr, size) \ | 29 | # define ADD_TRACED_VARIABLE(name, addr, size) add_traced_variable(PSTR(name), (void*)addr, size, PSTR(__FILE__), __LINE__) |
| 30 | add_traced_variable(PSTR(name), (void*)addr, size, PSTR(__FILE__), __LINE__) | ||
| 31 | 30 | ||
| 32 | // Stop tracing the variable with the given name | 31 | // Stop tracing the variable with the given name |
| 33 | #define REMOVE_TRACED_VARIABLE(name) remove_traced_variable(PSTR(name), PSTR(__FILE__), __LINE__) | 32 | # define REMOVE_TRACED_VARIABLE(name) remove_traced_variable(PSTR(name), PSTR(__FILE__), __LINE__) |
| 34 | 33 | ||
| 35 | // Call to get messages when the variable has been changed | 34 | // Call to get messages when the variable has been changed |
| 36 | #define VERIFY_TRACED_VARIABLES() verify_traced_variables(PSTR(__FILE__), __LINE__) | 35 | # define VERIFY_TRACED_VARIABLES() verify_traced_variables(PSTR(__FILE__), __LINE__) |
| 37 | 36 | ||
| 38 | #else | 37 | #else |
| 39 | 38 | ||
| 40 | #define ADD_TRACED_VARIABLE(name, addr, size) | 39 | # define ADD_TRACED_VARIABLE(name, addr, size) |
| 41 | #define REMOVE_TRACED_VARIABLE(name) | 40 | # define REMOVE_TRACED_VARIABLE(name) |
| 42 | #define VERIFY_TRACED_VARIABLES() | 41 | # define VERIFY_TRACED_VARIABLES() |
| 43 | 42 | ||
| 44 | #endif | 43 | #endif |
| 45 | 44 | ||
