diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-07-31 17:14:12 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2015-07-31 17:14:12 +0100 |
commit | 9451976a5b00416a1247cb5b80c4943b613e56eb (patch) | |
tree | d191760e528fa55e098e055b0af3d85dd081a852 /src/sna/xassert.h | |
parent | 6a2dcb388e6b549c3175ccfbcd3f1751e25de40a (diff) |
sna: Assert that flip handler/data exists before invoking
Just an explanatory assert in case we ever jump off into a NULL function
pointer.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/xassert.h')
-rw-r--r-- | src/sna/xassert.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sna/xassert.h b/src/sna/xassert.h index bac70b8a..28796b8a 100644 --- a/src/sna/xassert.h +++ b/src/sna/xassert.h @@ -52,8 +52,14 @@ __warn_once__ = 1; \ } \ } while (0) + +#define dbg(EXPR) EXPR + #else + #define warn_unless(E) +#define dbg(EXPR) + #endif #endif /* __XASSERT_H__ */ |