used newly ENUM_CLASS_RANGE_ERROR_RETURN_....macros.
This commit is contained in:
@@ -151,7 +151,7 @@ namespace hgl
|
|||||||
|
|
||||||
inline Hash *CreateHash(HASH ha)
|
inline Hash *CreateHash(HASH ha)
|
||||||
{
|
{
|
||||||
ENUM_CLASS_RANGE_ERROR_RETURN_NULLPTR(HASH,ha)
|
ENUM_CLASS_RANGE_ERROR_RETURN_NULLPTR(ha)
|
||||||
|
|
||||||
using CreateHashFunc=Hash *(*)();
|
using CreateHashFunc=Hash *(*)();
|
||||||
|
|
||||||
@@ -204,7 +204,7 @@ namespace hgl
|
|||||||
*/
|
*/
|
||||||
inline bool CountHash(const void *data,int size,HASH ha,void *hash_code)
|
inline bool CountHash(const void *data,int size,HASH ha,void *hash_code)
|
||||||
{
|
{
|
||||||
ENUM_CLASS_RANGE_ERROR_RETURN_FALSE(HASH,ha)
|
ENUM_CLASS_RANGE_ERROR_RETURN_FALSE(ha)
|
||||||
if(!data||size<=0||!hash_code)return(false);
|
if(!data||size<=0||!hash_code)return(false);
|
||||||
|
|
||||||
using CountHashFunc=bool (*)(const void *,int size,void *);
|
using CountHashFunc=bool (*)(const void *,int size,void *);
|
||||||
@@ -271,7 +271,7 @@ namespace hgl
|
|||||||
*/
|
*/
|
||||||
inline bool CountHash(const void *data,int size,HASH ha,UTF8String &hash_str,bool litter=true)
|
inline bool CountHash(const void *data,int size,HASH ha,UTF8String &hash_str,bool litter=true)
|
||||||
{
|
{
|
||||||
ENUM_CLASS_RANGE_ERROR_RETURN_FALSE(HASH,ha)
|
ENUM_CLASS_RANGE_ERROR_RETURN_FALSE(ha)
|
||||||
if(!data||size<=0)return(false);
|
if(!data||size<=0)return(false);
|
||||||
|
|
||||||
using CountHashFunc=bool (*)(const void *,int size,UTF8String &,bool);
|
using CountHashFunc=bool (*)(const void *,int size,UTF8String &,bool);
|
||||||
|
Reference in New Issue
Block a user