Zth (libzth)
Loading...
Searching...
No Matches
config.cpp File Reference
#include <libzth/config.h>
#include <libzth/util.h>
#include <cstdlib>
#include <cstring>

Go to the source code of this file.

Namespaces

namespace  zth
 

Macros

#define ZTH_CHECK(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)
Value:
case Check::Config_##x: \
ok = (size_t)Config::x == value; \
if(Config::EnableFullAssert) \
name = "" #x; \
break;