diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-04-21 20:08:08 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-04-21 20:08:44 -0700 |
commit | 0e3eb38f1185078662ee44c3120326cdb88274b4 (patch) | |
tree | f16b3222ca8fe4933f988f02e6f1bc314482d756 /common.h | |
parent | dc23af6b32d4b89eea9ad904495ac5507b8835cc (diff) |
Improved fork reporting
Made autosuggestion work properly for tilde expansion
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -268,8 +268,8 @@ void assert_is_background_thread(const char *who); #define ASSERT_IS_BACKGROUND_THREAD() ASSERT_IS_BACKGROUND_THREAD_TRAMPOLINE(__FUNCTION__) /* Useful macro for asserting that a lock is locked. This doesn't check whether this thread locked it, which it would be nice if it did, but here it is anyways. */ -void assert_is_locked(void *mutex, const char *who); -#define ASSERT_IS_LOCKED(x) assert_is_locked((void *)(&x), #x) +void assert_is_locked(void *mutex, const char *who, const char *caller); +#define ASSERT_IS_LOCKED(x) assert_is_locked((void *)(&x), #x, __FUNCTION__) /** Converts the wide character string \c in into it's narrow |