Changeset 1130 for cpp/common/log.cpp
- Timestamp:
- 04/16/21 15:55:34 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/common/log.cpp
r875 r1130 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-20 19Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2021 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 8 8 #include "Convert.h" 9 9 #include <assert.h> 10 #include <algorithm> 10 11 11 12 const char* LOG_LEVEL_ARRAY[] = { "[DEBUG] ", "", "[WARN] ", "[ERROR] ", "[CRITICAL] " }; … … 36 37 { 37 38 assert((level>=LOG_MIN) && (level<=LOG_MAX)); 38 level = min(LOG_MAX,max(LOG_MIN, level));39 level = std::min(LOG_MAX, std::max(LOG_MIN, level)); 39 40 return LOG_LEVEL_ARRAY[level + 1]; 40 41 }
Note: See TracChangeset
for help on using the changeset viewer.