Zth (libzth)
Loading...
Searching...
No Matches
config.h File Reference
#include <libzth/macros.h>
#include <libzth/init.h>
#include <cstddef>
#include <sys/time.h>
#include <cstdint>
#include <memory>
#include "zth_config.h"

Go to the source code of this file.

Classes

struct  zth::Env
 
struct  zth::DefaultConfig
 
struct  zth::DefaultConfig::Allocator< T >
 Allocator type. More...
 
struct  zth::Check
 

Namespaces

namespace  zth
 

Macros

#define zth_config(name)
 Checks if the given zth::Config field is enabled.
 
#define ZTH_CONSTEXPR_RETURN(type, ...)   return {__VA_ARGS__};
 
#define ZTH_CONFIG_MIN_TIMESLICE_   100000
 
#define ZTH_CONFIG_TIMESLICE_OVERRUN_REPORT_THRESHOLD_   10000000
 
#define ZTH_CHECK(x)   checkConfig(Check::Config_##x, (size_t)Config::x);
 

Functions

bool zth::config (int env, bool whenUnset)
 Checks if a given environment option is set.
 
void zth::checkConfig (int check, size_t value)
 Check if a given Config field is the same as the given value.
 

Macro Definition Documentation

◆ ZTH_CHECK

#define ZTH_CHECK (   x)    checkConfig(Check::Config_##x, (size_t)Config::x);

◆ ZTH_CONFIG_MIN_TIMESLICE_

#define ZTH_CONFIG_MIN_TIMESLICE_   100000

◆ ZTH_CONFIG_TIMESLICE_OVERRUN_REPORT_THRESHOLD_

#define ZTH_CONFIG_TIMESLICE_OVERRUN_REPORT_THRESHOLD_   10000000

◆ ZTH_CONSTEXPR_RETURN

#define ZTH_CONSTEXPR_RETURN (   type,
  ... 
)    return {__VA_ARGS__};

Definition at line 53 of file config.h.