Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jens Gustedt
P99 - macros and functions for C99
Commits
e217c956
Commit
e217c956
authored
Dec 03, 2012
by
Jens Gustedt
Browse files
avoid double evaluation of a macro argument
parent
c08faeb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
p99/p99_count.h
View file @
e217c956
...
...
@@ -63,7 +63,9 @@ void p99_count_destroy(p99_count* p00_c) {
** of a dependent block or statement.
**/
P99_BLOCK_DOCUMENT
#define P99_ACCOUNT(COUNT) P99_PROTECTED_BLOCK(p99_count_inc(&COUNT), p99_count_dec(&COUNT))
#define P99_ACCOUNT(COUNT) \
P00_BLK_DECL(p99_count*, p00Mcount, &(COUNT)) \
P99_PROTECTED_BLOCK(p99_count_inc(p00Mcount), p99_count_dec(p00Mcount))
/**
** @brief increment the counter @a counter atomically by @a p00_hm.
...
...
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