Monado OpenXR Runtime
Functions
u_debug.c File Reference

Small debug helpers. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "util/u_debug.h"
Include dependency graph for u_debug.c:

Functions

const char * debug_get_option (const char *name, const char *_default)
 
bool debug_get_bool_option (const char *name, bool _default)
 
long debug_get_num_option (const char *name, long _default)
 
float debug_get_float_option (const char *name, float _default)
 

Detailed Description

Small debug helpers.

Author
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m

Debug get option helpers heavily inspired from mesa ones.

Function Documentation

◆ debug_get_bool_option()

bool debug_get_bool_option ( const char *  name,
bool  _default 
)

◆ debug_get_float_option()

float debug_get_float_option ( const char *  name,
float  _default 
)

◆ debug_get_num_option()

long debug_get_num_option ( const char *  name,
long  _default 
)

◆ debug_get_option()

const char* debug_get_option ( const char *  name,
const char *  _default 
)