Variable tracking code.
More...
#include "util/u_var.h"
#include "util/u_time.h"
#include "util/u_misc.h"
#include "util/u_debug.h"
#include "util/u_device.h"
#include <string>
#include <sstream>
#include <vector>
#include <unordered_map>
|
#define | ADD_FUNC(SUFFIX, TYPE, ENUM) |
|
◆ ADD_FUNC
#define ADD_FUNC |
( |
|
SUFFIX, |
|
|
|
TYPE, |
|
|
|
ENUM |
|
) |
| |
Value:extern "C" void u_var_add_##SUFFIX(void *obj, TYPE *ptr, \
const char *c_name) \
{ \
if (!get_on()) { \
return; \
} \
add_var(obj, (void *)ptr, U_VAR_KIND_##ENUM, c_name); \
}
◆ u_var_force_on()
void u_var_force_on |
( |
void |
| ) |
|
This forces the variable tracking code to on, it is disabled by default.
◆ u_var_remove_root()
void u_var_remove_root |
( |
void * |
root | ) |
|
◆ u_var_visit()
Visit all root nodes and their variables.