This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project gfxprim.git.
The branch, master has been updated via 50ac1f21f85e66b3d2a8a0a6047971c474c250a4 (commit) from 2274cefa956331bb30fc65f72522f7a4d4ec0e28 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- http://repo.or.cz/w/gfxprim.git/commit/50ac1f21f85e66b3d2a8a0a6047971c474c25...
commit 50ac1f21f85e66b3d2a8a0a6047971c474c250a4 Author: BlueBear jiri.bluebear.dluhos@gmail.com Date: Thu May 5 22:15:20 2011 +0200
Added the GP_BUG_ON macro.
diff --git a/core/GP_Common.h b/core/GP_Common.h index 6f06121..b93e921 100644 --- a/core/GP_Common.h +++ b/core/GP_Common.h @@ -50,6 +50,18 @@ })
/* + * Checks the condition and aborts immediately if it is true, + * printing the condition and location in the source. + */ +#define GP_BUG_ON(test) do { + if ((test)) { + fprintf(stderr, "*** gfxprim: BUG: %s:%d: in %s: %sn", + __FILE__, __LINE__, __FUNCTION__, #test); + abort(); + } + } while (0) + +/* * Abort and print abort location to stderr */ #define GP_ABORT(msg) do { -----------------------------------------------------------------------
Summary of changes: core/GP_Common.h | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos@gmail.com if you want to unsubscribe, or site admin admin@repo.or.cz if you receive no reply.