Changeset 1130 for cpp/common/loggers
- Timestamp:
- 04/16/21 15:55:34 (4 years ago)
- Location:
- cpp/common/loggers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/common/loggers/loggers.h
r1100 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 … … 9 9 #include <common/threads.h> 10 10 #include <common/nonstd_stl.h> 11 #include <algorithm> 11 12 12 13 class LoggerBase; -
cpp/common/loggers/loggertostdout.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 5 5 #include "loggertostdout.h" 6 6 #include <common/console.h> 7 #include <algorithm> 7 8 #include <assert.h> 8 9 #ifdef SHP … … 38 39 { 39 40 assert((level>=LOG_MIN) && (level<=LOG_MAX)); 40 level = min(LOG_MAX,max(LOG_MIN, level));41 level = std::min(LOG_MAX, std::max(LOG_MIN, level)); 41 42 printf(log_format, log_level[level + 1], obj, method, msg, "\n"); 42 43 }
Note: See TracChangeset
for help on using the changeset viewer.