/* Copyright 2020, Dirk Krause. All rights reserved. SPDX-License-Identifier: BSD-3-Clause */ /** @file dk4const.h Numeric constants for log level and string table entry length. */ #ifndef DK4CONST_H_INCLUDED /** Protection against multiple inclusion. */ #define DK4CONST_H_INCLUDED 1 #ifndef DK4CONF_H_INCLUDED #if DK4_BUILDING_DKTOOLS4 #include "dk4conf.h" #else #include #endif #endif /** Log levels, higher numeric values correspond to lower priorities. */ enum { /** This message priority never occurs. */ DK4_LL_NONE = 0, /** Panic message. */ DK4_LL_PANIC, /** Fatal error message. */ DK4_LL_FATAL, /** Error message. */ DK4_LL_ERROR, /** Warning message. */ DK4_LL_WARNING, /** Informational message. */ DK4_LL_INFO, /** Progress message. */ DK4_LL_PROGRESS, /** Debug message. */ DK4_LL_DEBUG, /** Message can be ignored. */ DK4_LL_IGNORE }; /** Maximum string table line width. */ enum { /** Maximum string table line width. */ DK4_MAX_STRING_TABLE_LINE_LENGTH = 1024 }; #endif /* ifndef DK4CONST_H_INCLUDED */