InertiaSDK

Loading...
Searching...
No Matches
Functions
inertia::debug Namespace Reference

## Functions
INERTIA_API void | SetLevel (int level)
INERTIA_API int | GetLevel ()
INERTIA_API void | SetDest (bool cout, bool file, bool debugger)
INERTIA_API bool | GetDebugToCout ()
INERTIA_API bool | GetDebugToFile ()
INERTIA_API bool | GetDebugToDebugger ()

## Detailed Description

Functions to handle debug output of the library.

## Function Documentation

## ◆ GetDebugToCout()

INERTIA_API bool inertia::debug::GetDebugToCout | ( |  | ) |

Check if debug to the standard output stream is enabled.

Returns
  true when debug to cout is enabled

## ◆ GetDebugToDebugger()

INERTIA_API bool inertia::debug::GetDebugToDebugger | ( |  | ) |

Check if debug to the debugger is enabled.

Returns
  true when debug to debugger is enabled

## ◆ GetDebugToFile()

INERTIA_API bool inertia::debug::GetDebugToFile | ( |  | ) |

Check if debug to file is enabled.

Returns
  true when debug to file enabled

## ◆ GetLevel()

INERTIA_API int inertia::debug::GetLevel | ( |  | ) |

Get the used debug level.

Returns
  the debug level

## ◆ SetDest()

INERTIA_API void inertia::debug::SetDest | ( | bool | cout,
|  | bool | file,
|  | bool | debugger )

Set the debug destinations (default=true,false,true).

Parameters

  cout | enable debug to the standard output stream
  file | enable debug to inertiaStudio.log in the executable directory
  debugger | enable debug to the debugger (Windows, Android)

## ◆ SetLevel()

INERTIA_API void inertia::debug::SetLevel | ( | int | level | ) |

Set the debug level to the specified level (-2=nothing to 3=all, default=0).

Parameters

  level | the new debugLevel