Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
Debug::HResult Class Reference

Helper class for writing HRESULTs to the debug stream. More...

#include <rts/debug.h>

Public Member Functions

 HResult (long hresult)
 

Detailed Description

Helper class for writing HRESULTs to the debug stream.

Can be used directly in the output stream, e.g.

DLOG( "My HResult is: " << Debug::HResult(SomeHRESULTValue) << "\n" );
Helper class for writing HRESULTs to the debug stream.
#define DLOG(what)

The most interesting thing about HRESULTs is that custom HRESULT translators can be added or removed during runtime, see Debug::AddHResultTranslator for more information.

Definition at line 164 of file debug_debug.h.

Constructor & Destructor Documentation

◆ HResult()

Debug::HResult::HResult ( long hresult)
inlineexplicit

Creates a HRESULT descriptor.

Parameters
hresultHRESULT value (checked, Windows declares HRESULT as typedef long)

Definition at line 178 of file debug_debug.h.


The documentation for this class was generated from the following file: