projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3192ac4
)
Removed extra semicolons from SILC_ASSERT and SILC_VERIFY macros
author
Pekka Riikonen
<priikone@silcnet.org>
Sun, 23 Nov 2008 10:48:21 +0000
(12:48 +0200)
committer
Pekka Riikonen
<priikone@silcnet.org>
Sun, 23 Nov 2008 10:48:21 +0000
(12:48 +0200)
lib/silcutil/silclog.h
patch
|
blob
|
history
diff --git
a/lib/silcutil/silclog.h
b/lib/silcutil/silclog.h
index 4ae8ca9ccf08ad1034e9391e07a808833aa7fed7..6b50553e685d3008f380423c25ecec429c8f7653 100644
(file)
--- a/
lib/silcutil/silclog.h
+++ b/
lib/silcutil/silclog.h
@@
-4,7
+4,7
@@
Author: Pekka Riikonen <priikone@silcnet.org>
Author: Pekka Riikonen <priikone@silcnet.org>
- Copyright (C) 1997 - 200
6
Pekka Riikonen
+ Copyright (C) 1997 - 200
8
Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-303,7
+303,7
@@
typedef SilcBool (*SilcLogHexdumpCb)(char *file, char *function, int line,
* SOURCE
*/
#if defined(SILC_DEBUG)
* SOURCE
*/
#if defined(SILC_DEBUG)
-#define SILC_ASSERT(expr) assert((expr))
;
+#define SILC_ASSERT(expr) assert((expr))
#else
#define SILC_ASSERT(expr) do { } while(0)
#endif /* SILC_DEBUG */
#else
#define SILC_ASSERT(expr) do { } while(0)
#endif /* SILC_DEBUG */
@@
-317,7
+317,7
@@
typedef SilcBool (*SilcLogHexdumpCb)(char *file, char *function, int line,
*
* DESCRIPTION
*
*
* DESCRIPTION
*
- * Verification macro that prints error message to stderr and calls
+ * Verification macro that prints error message to stderr and calls
* abort() if the `expression' is false (ie. compares equal to zero)
* on debug builds (SILC_DEBUG defined), and prints error message to
* stderr on release builds (SILC_DEBUG undefined) but does not abort().
* abort() if the `expression' is false (ie. compares equal to zero)
* on debug builds (SILC_DEBUG defined), and prints error message to
* stderr on release builds (SILC_DEBUG undefined) but does not abort().
@@
-327,11
+327,11
@@
typedef SilcBool (*SilcLogHexdumpCb)(char *file, char *function, int line,
* SOURCE
*/
#if defined(SILC_DEBUG)
* SOURCE
*/
#if defined(SILC_DEBUG)
-#define SILC_VERIFY(expr) assert((expr))
;
+#define SILC_VERIFY(expr) assert((expr))
#else
#define SILC_VERIFY(expr) \
if (!(expr)) \
#else
#define SILC_VERIFY(expr) \
if (!(expr)) \
- SILC_LOG_ERROR(("SILC_VERIFY %s:%d", __FUNCTION__, __LINE__))
;
+ SILC_LOG_ERROR(("SILC_VERIFY %s:%d", __FUNCTION__, __LINE__))
#endif /* SILC_DEBUG */
/***/
#endif /* SILC_DEBUG */
/***/