C++ Library Extensions 2022.12.09
To help learn modern C++ programming
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages Concepts
006-debug_exception.cpp File Reference
#include <tpf_output.hpp>
#include <thread>
#include <exception>
Include dependency graph for 006-debug_exception.cpp:

Go to the source code of this file.

Classes

class  exception_debug
 

Macros

#define Ugly_Function_Name   __PRETTY_FUNCTION__
 
#define UglyNamed_ThrowException(message)   throw exception_debug(message, __LINE__, Ugly_Function_Name, __FILE__)
 

Functions

void test_virtual_destructor ()
 
int division (int a, int b)
 
void example_for_throw_debug_exception ()
 
int main ()
 

Macro Definition Documentation

◆ Ugly_Function_Name

#define Ugly_Function_Name   __PRETTY_FUNCTION__

Definition at line 8 of file 006-debug_exception.cpp.

◆ UglyNamed_ThrowException

#define UglyNamed_ThrowException (   message)    throw exception_debug(message, __LINE__, Ugly_Function_Name, __FILE__)

Definition at line 81 of file 006-debug_exception.cpp.

Function Documentation

◆ division()

int division ( int  a,
int  b 
)

Definition at line 83 of file 006-debug_exception.cpp.

Here is the caller graph for this function:

◆ example_for_throw_debug_exception()

void example_for_throw_debug_exception ( )

Definition at line 93 of file 006-debug_exception.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( )

Definition at line 108 of file 006-debug_exception.cpp.

Here is the call graph for this function:

◆ test_virtual_destructor()

void test_virtual_destructor ( )

Definition at line 24 of file 006-debug_exception.cpp.