diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-06-25 22:07:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-25 22:07:46 +0300 |
commit | 5f4c452cdf22f5625b61004ed0e92816b0175ea1 (patch) | |
tree | 1b766d21645ff064e57e366d807497f58d4f0a2d /src/common/db.h | |
parent | 98da34f0c6785a4227efa0f6718a7453e2991202 (diff) | |
parent | a8590a0b235ce48320d428a184181c1e93267cd6 (diff) | |
download | hercules-5f4c452cdf22f5625b61004ed0e92816b0175ea1.tar.gz hercules-5f4c452cdf22f5625b61004ed0e92816b0175ea1.tar.bz2 hercules-5f4c452cdf22f5625b61004ed0e92816b0175ea1.tar.xz hercules-5f4c452cdf22f5625b61004ed0e92816b0175ea1.zip |
Merge pull request #1292 from HerculesWS/huld-improvements
HULD improvements
Diffstat (limited to 'src/common/db.h')
-rw-r--r-- | src/common/db.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/common/db.h b/src/common/db.h index d7d111c86..1c0955221 100644 --- a/src/common/db.h +++ b/src/common/db.h @@ -1395,6 +1395,16 @@ HPShared struct db_interface *DB; } while(false) /** + * Removes all values from the vector. + * + * Does not free the allocated data. + */ +#define VECTOR_TRUNCATE(_vec) \ + do { \ + VECTOR_LENGTH(_vec) = 0; \ + } while (false) + +/** * Clears the vector, freeing allocated data. * * @param _vec Vector. |