Monado OpenXR Runtime
|
Small debug helpers. More...
#include "xrt/xrt_config_os.h"
#include "util/u_debug.h"
#include "util/u_logging.h"
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Functions | |
static const char * | get_option_raw (char *chars, size_t char_count, const char *name) |
static const char * | level_to_str (enum u_logging_level level) |
static const char * | tristate_to_str (enum debug_tristate_option tristate) |
static bool | is_str_in_start_of (const char *str, const char *matches) |
This function checks str if it matches matches , it returns true as long as the complete str is in the starts of matches . More... | |
bool | debug_string_to_bool (const char *string) |
enum debug_tristate_option | debug_string_to_tristate (const char *string) |
long | debug_string_to_num (const char *string, long _default) |
float | debug_string_to_float (const char *string, float _default) |
enum u_logging_level | debug_string_to_log_level (const char *string, enum u_logging_level _default) |
const char * | debug_get_option (char *chars, size_t char_count, const char *name, const char *_default) |
bool | debug_get_bool_option (const char *name, bool _default) |
enum debug_tristate_option | debug_get_tristate_option (const char *name) |
long | debug_get_num_option (const char *name, long _default) |
float | debug_get_float_option (const char *name, float _default) |
enum u_logging_level | debug_get_log_option (const char *name, enum u_logging_level _default) |
Small debug helpers.
Debug get option helpers heavily inspired from mesa ones.
|
static |
This function checks str
if it matches matches
, it returns true as long as the complete str
is in the starts of matches
.
Empty string does not match.