Monado OpenXR Runtime

Pretty printing various Monado things. More...

#include "util/u_misc.h"
#include "util/u_pretty_print.h"
#include <assert.h>
#include <string.h>
#include <stdarg.h>
#include <stdio.h>
Include dependency graph for u_pretty_print.c:

Macros

#define DG(str)   (dg.func(dg.ptr, str, strlen(str)))
 
#define XRT_INPUT_LIST_TO_CASE(NAME, _)    case NAME: DG(#NAME); return;
 

Functions

const char * get_xrt_input_type_short_str (enum xrt_input_type type)
 
void stack_only_sink (void *ptr, const char *str, size_t length)
 
void u_pp (struct u_pp_delegate dg, const char *fmt,...)
 
void u_pp_xrt_input_name (struct u_pp_delegate dg, enum xrt_input_name name)
 Pretty prints the xrt_input_name. More...
 
void u_pp_xrt_result (struct u_pp_delegate dg, xrt_result_t xret)
 Pretty prints the xrt_result_t. More...
 
void u_pp_xrt_reference_space_type (struct u_pp_delegate dg, enum xrt_reference_space_type type)
 Pretty prints the xrt_reference_space_type. More...
 
void u_pp_small_vec3 (u_pp_delegate_t dg, const struct xrt_vec3 *vec)
 Printers for math structs. More...
 
void u_pp_small_pose (u_pp_delegate_t dg, const struct xrt_pose *pose)
 
void u_pp_small_matrix_3x3 (u_pp_delegate_t dg, const struct xrt_matrix_3x3 *m)
 
void u_pp_small_matrix_4x4 (u_pp_delegate_t dg, const struct xrt_matrix_4x4 *m)
 
void u_pp_small_matrix_4x4_f64 (u_pp_delegate_t dg, const struct xrt_matrix_4x4_f64 *m)
 
void u_pp_small_array_f64 (struct u_pp_delegate dg, const double *arr, size_t n)
 
void u_pp_small_array2d_f64 (struct u_pp_delegate dg, const double *arr, size_t n, size_t m)
 
void u_pp_vec3 (u_pp_delegate_t dg, const struct xrt_vec3 *vec, const char *name, const char *indent)
 
void u_pp_pose (u_pp_delegate_t dg, const struct xrt_pose *pose, const char *name, const char *indent)
 
void u_pp_matrix_3x3 (u_pp_delegate_t dg, const struct xrt_matrix_3x3 *m, const char *name, const char *indent)
 
void u_pp_matrix_4x4 (u_pp_delegate_t dg, const struct xrt_matrix_4x4 *m, const char *name, const char *indent)
 
void u_pp_matrix_4x4_f64 (u_pp_delegate_t dg, const struct xrt_matrix_4x4_f64 *m, const char *name, const char *indent)
 
void u_pp_array_f64 (u_pp_delegate_t dg, const double *arr, size_t n, const char *name, const char *indent)
 Pretty prints double arr[n] More...
 
void u_pp_array2d_f64 (u_pp_delegate_t dg, const double *arr, size_t n, size_t m, const char *name, const char *indent)
 Pretty prints double arr[n][m] More...
 
u_pp_delegate_t u_pp_sink_stack_only_init (struct u_pp_sink_stack_only *sink)
 

Detailed Description

Function Documentation

◆ u_pp_array2d_f64()

void u_pp_array2d_f64 ( u_pp_delegate_t  dg,
const double *  arr,
size_t  n,
size_t  m,
const char *  name,
const char *  indent 
)

Pretty prints double arr[n][m]

References u_pp().

◆ u_pp_array_f64()

void u_pp_array_f64 ( u_pp_delegate_t  dg,
const double *  arr,
size_t  n,
const char *  name,
const char *  indent 
)

Pretty prints double arr[n]

References u_pp().