AlpacaLibary  1.63
A closed source C++ bot for OSRS
Debug.hpp
Go to the documentation of this file.
1 #ifndef DEBUG_HPP_INCLUDED
2 #define DEBUG_HPP_INCLUDED
3 
4 #include "../../Include/Core/Types/Logger.hpp"
5 
6 #define DEBUG_VERBOSE_START Debug::Verbose++ << __PRETTY_FUNCTION__ << " > Started" << std::endl
7 #define DEBUG_VERBOSE_SUCCESS --Debug::Verbose << __PRETTY_FUNCTION__ << " > Succeeded > "
8 #define DEBUG_VERBOSE_SUCCESS_NOINFO --Debug::Verbose << __PRETTY_FUNCTION__ << " > Succeeded" << std::endl
9 #define DEBUG_VERBOSE_SUCCESS_EOF --Debug::Verbose << " > Succeeded > Reached end of function" << std::endl
10 #define DEBUG_VERBOSE_FAIL --Debug::Verbose << __PRETTY_FUNCTION__ << " > Failed > "
11 #define DEBUG_VERBOSE_FAIL_NOINFO --Debug::Verbose << __PRETTY_FUNCTION__ << " > Failed" << std::endl;
12 #define DEBUG_VERBOSE_FAIL_EOF --Debug::Verbose << __PRETTY_FUNCTION__ << " > Failed > Reached end of function" << std::endl
13 
14 #define DEBUG_VERBOSE_LOG Debug::Verbose << __PRETTY_FUNCTION__ << " > "
15 #define DEBUG_VERBOSE_LOG_SUCCESS Debug::Verbose << __PRETTY_FUNCTION__ << " > Succeeded > "
16 #define DEBUG_VERBOSE_LOG_SUCCESS_NOINFO Debug::Verbose << __PRETTY_FUNCTION__ << " > Succeeded" << std::endl
17 #define DEBUG_VERBOSE_LOG_SUCCESS_EOF Debug::Verbose << __PRETTY_FUNCTION__ << " > Succeeded > Reached end of function" << std::endl
18 #define DEBUG_VERBOSE_LOG_FAIL Debug::Verbose << __PRETTY_FUNCTION__ << " > Failed > "
19 #define DEBUG_VERBOSE_LOG_FAIL_NOINFO Debug::Verbose << __PRETTY_FUNCTION__ << " > Failed" << std::endl
20 #define DEBUG_VERBOSE_LOG_FAIL_EOF Debug::Verbose << __PRETTY_FUNCTION__ << " > Failed > Reached end of function" << std::endl
21 
22 namespace Debug
23 {
24  extern Logger Info;
25  extern Logger Verbose;
26  extern Logger Warning;
27  extern Logger Error;
28  extern Logger Fatal;
29  extern Logger Internal;
30  extern Logger Paint;
31 
32  void ShowConsole();
33  void HideConsole();
34  void SetVerbose(bool Toggle);
35 
36  void EnableInput();
37  void DisableInput();
38 
39  void Clear();
40  void Screenshot(const std::string& Path);
41  void SetSleepMultiplier(std::int32_t Multiplier);
42 
43  void EnableBlit();
44  void DisableBlit();
45 
46 }
47 
48 
49 #endif // DEBUG_HPP_INCLUDED
Definition: Logger.hpp:8
Definition: Debug.hpp:23
void EnableBlit()
void DisableInput()
void DisableBlit()
void SetVerbose(bool Toggle)
void Clear()
void HideConsole()
Logger Internal
Logger Error
Logger Paint
Logger Warning
Logger Fatal
Logger Verbose
void EnableInput()
void ShowConsole()
void SetSleepMultiplier(std::int32_t Multiplier)
void Screenshot(const std::string &Path)
Logger Info