mirror of
https://github.com/xroche/httrack.git
synced 2026-05-17 08:26:14 +03:00
Fixed htssafe.h
This commit is contained in:
@@ -43,7 +43,7 @@ Please visit our Website: http://www.httrack.com
|
||||
* Emergency logging.
|
||||
* Default is to use libhttrack one.
|
||||
*/
|
||||
#ifndef HTSSAFE_ABORT_FUNCTION
|
||||
#if (!defined(HTSSAFE_ABORT_FUNCTION) && defined(LIBHTTRACK_EXPORTS))
|
||||
|
||||
/** Assert error callback. **/
|
||||
#ifndef HTS_DEF_FWSTRUCT_htsErrorCallback
|
||||
@@ -93,7 +93,9 @@ static HTS_UNUSED void log_abort_(const char *msg, const char *file, int line) {
|
||||
}
|
||||
|
||||
static HTS_UNUSED void abortf_(const char *exp, const char *file, int line) {
|
||||
#ifdef HTSSAFE_ABORT_FUNCTION
|
||||
HTSSAFE_ABORT_FUNCTION(exp, file, line);
|
||||
#endif
|
||||
log_abort_(exp, file, line);
|
||||
abort();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user