|
MemViz v1.0.0
C++ Memory Layout Inspector
|
#include <tuple>Go to the source code of this file.
Macros | |
| #define | MEMVIZ_REGISTER(Type, Tuple) |
| Registers a user-defined type for reflection in MemViz. | |
| #define MEMVIZ_REGISTER | ( | Type, | |
| Tuple | |||
| ) |
Registers a user-defined type for reflection in MemViz.
This macro specializes the memviz::MemberInfo<T> struct for the given type Type, enabling compile-time reflection over its member variables.
The macro should be used in the same translation unit where the type is visible, and before any calls to dumpLayout<T>() or getMembers<T>().
| Type | The type (class/struct) to register. |
| Tuple | A std::tuple containing std::pair<const char*, T member_ptr> for each field. |