karen pointer sur fonctions en static, sed resolution eof

This commit is contained in:
Hugo LAMY
2022-02-10 17:21:01 +01:00
parent c287ea7c97
commit 504f6c3524
29 changed files with 369 additions and 8 deletions

View File

@@ -1,13 +1,9 @@
#include "Karen.hpp"
void (Karen::*Karen::_fp[4])() = { &Karen::_debug, &Karen::_info, &Karen::_warning, &Karen::_error};
Karen::Karen() {
_fp[0] = &Karen::_debug;
_fp[1] = &Karen::_info;
_fp[2] = &Karen::_warning;
_fp[3] = &Karen::_error;
_level[0] = "DEBUG";
_level[1] = "INFO";
_level[2] = "WARNING";