Skip to content
Snippets Groups Projects
Commit 6326b396 authored by ghuter's avatar ghuter
Browse files

it is safer to enclose macro expr with parentheses

parent a902d01e
No related branches found
No related tags found
No related merge requests found
...@@ -21,4 +21,4 @@ ...@@ -21,4 +21,4 @@
#pragma once #pragma once
/// Returns the length of a given static array /// Returns the length of a given static array
#define ARRAY_LENGTH(array) sizeof(array) / sizeof(*array) #define ARRAY_LENGTH(array) (sizeof(array) / sizeof(*array))
\ No newline at end of file \ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment