Debugging any regular t and short names

From wiki
Revision as of 21:45, 11 February 2009 by SeanParent (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Debugging the any_regular_t type can be problematic if you don't know what the data type of the value stored in it is. To make it simpler for to view an any_regular_t in the debugger, release 1.0.41 contains a four character short name for the type which is stored at the top of the vtable.

The structure of an any_regular_t is a pair of doubles, the first word of the first double contains a pointer to a vtable.

double double
vtable* pad (on 32 bit machines) data or data*

The first word of the vtable contains a version number on release builds (currently 1) and a short name (a four character constant) on debug builds.