From beb4c0f7b818fa4a39a48b6a7803c634e77405a8 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Tue, 31 Oct 2017 16:46:40 +0100 Subject: [PATCH] Rename param --- m-mutex.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/m-mutex.h b/m-mutex.h index 83b8d466..b68c709d 100644 --- a/m-mutex.h +++ b/m-mutex.h @@ -302,9 +302,9 @@ static inline void m_oncei_call(m_oncei_t o, void (*func)(void)) M_LOCKI_DO(name, M_C(local_cont_, __LINE__), M_LOCKI_BY_ONCE, m_mutex_unlock) #endif -#define M_LOCKI_DO(name, cont, lock, unlock) \ +#define M_LOCKI_DO(name, cont, lock_func, unlock_func) \ for(bool cont = true \ - ; cont && (lock (name), true); \ - (unlock (name), cont = false)) + ; cont && (lock_func (name), true); \ + (unlock_func (name), cont = false)) #endif