diff options
author | Haru <haru@dotalux.com> | 2016-01-09 21:44:27 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-01-09 21:44:27 +0100 |
commit | e248c3394d7a2a76cfb39e0955ebab648ecc2bf0 (patch) | |
tree | 31d8b0b7de923cff4a49131b82a6ff4de2fd2769 /src/common/sql.h | |
parent | 10f9f4282097f177d6ee0b26572dcf4308e6d6fb (diff) | |
download | hercules-e248c3394d7a2a76cfb39e0955ebab648ecc2bf0.tar.gz hercules-e248c3394d7a2a76cfb39e0955ebab648ecc2bf0.tar.bz2 hercules-e248c3394d7a2a76cfb39e0955ebab648ecc2bf0.tar.xz hercules-e248c3394d7a2a76cfb39e0955ebab648ecc2bf0.zip |
Sanitized various macros
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/common/sql.h')
-rw-r--r-- | src/common/sql.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/sql.h b/src/common/sql.h index 33643407d..e949a8280 100644 --- a/src/common/sql.h +++ b/src/common/sql.h @@ -272,13 +272,13 @@ void Sql_HerculesUpdateSkip(Sql* self,const char *filename); HPShared struct sql_interface *SQL; #if defined(SQL_REMOVE_SHOWDEBUG) -#define Sql_ShowDebug(self) (void)0 +#define Sql_ShowDebug(self) (void)(self) #else #define Sql_ShowDebug(self) (SQL->ShowDebug_((self), __FILE__, __LINE__)) #endif #if defined(SQL_REMOVE_SHOWDEBUG) -#define SqlStmt_ShowDebug(self) (void)0 +#define SqlStmt_ShowDebug(self) (void)(self) #else /// Shows debug information (with statement). #define SqlStmt_ShowDebug(self) (SQL->StmtShowDebug_((self), __FILE__, __LINE__)) |