Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
d6e9cde5
Unverified
Commit
d6e9cde5
authored
Feb 07, 2022
by
weiguo
Committed by
GitHub
Feb 06, 2022
Browse files
Supplement define guards to prevent multiple inclusion (#10246)
parent
98b3f525
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/debugmacro.h
View file @
d6e9cde5
...
@@ -30,6 +30,9 @@
...
@@ -30,6 +30,9 @@
* POSSIBILITY OF SUCH DAMAGE.
* POSSIBILITY OF SUCH DAMAGE.
*/
*/
#ifndef _REDIS_DEBUGMACRO_H_
#define _REDIS_DEBUGMACRO_H_
#include <stdio.h>
#include <stdio.h>
#define D(...) \
#define D(...) \
do { \
do { \
...
@@ -39,3 +42,5 @@
...
@@ -39,3 +42,5 @@
fprintf(fp,"\n"); \
fprintf(fp,"\n"); \
fclose(fp); \
fclose(fp); \
} while (0)
} while (0)
#endif
/* _REDIS_DEBUGMACRO_H_ */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment