Skip to content
Snippets Groups Projects
Commit f6b13178 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Use parens for Win32 protected_*int macro args

for better errors/warnings from the compiler when misued.
parent b92bf999
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -237,14 +237,14 @@ typedef struct {
#define protected_uint32_init(i, val) protected_int32_init((protected_int32_t*)i, val)
#define protected_uint64_init(i, val) protected_int64_init((protected_int64_t*)i, val)
/* Return 0 on success, non-zero on failure (see pthread_mutex_destroy): */
#define protected_int32_destroy(i) pthread_mutex_destroy(&i.mutex)
#define protected_int32_destroy(i) pthread_mutex_destroy(&(i).mutex)
#define protected_uint32_destroy protected_int32_destroy
#define protected_int64_destroy protected_int32_destroy
#define protected_uint64_destroy protected_int32_destroy
#define protected_int32_value(i) protected_int32_adjust(&i,0)
#define protected_uint32_value(i) protected_uint32_adjust(&i,0)
#define protected_int64_value(i) protected_int64_adjust(&i,0)
#define protected_uint64_value(i) protected_uint64_adjust(&i,0)
#define protected_int32_value(i) protected_int32_adjust(&(i),0)
#define protected_uint32_value(i) protected_uint32_adjust(&(i),0)
#define protected_int64_value(i) protected_int64_adjust(&(i),0)
#define protected_uint64_value(i) protected_uint64_adjust(&(i),0)
#define protected_int32_adjust_fetch(a, b) protected_int32_adjust(a, b)
#define protected_uint32_adjust_fetch(a, b) protected_uint32_adjust(a, b)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment