libcsdbg  1.28
C++ exception (and generic) stack trace debug library
void csdbg::util::version ( u16 major,
u16 minor 

Get the library version numbers.

[out]majorthe major version number
[out]minorthe minor (and subminor) version number
Omit either version number by passing NULL

Definition at line 58 of file util.cpp.

References csdbg::g_major, csdbg::g_minor, and likely.

59 {
60  if ( likely(major != NULL) )
61  *major = g_major;
63  if ( likely(minor != NULL) )
64  *minor = g_minor;
65 }
static const u16 g_minor
Library version minor.
Definition: config.hpp:195
#define likely(expr)
Offer a hint (positive) to the pipeline branch predictor.
Definition: config.hpp:344
static const u16 g_major
Library version major.
Definition: config.hpp:190