Talvos  0.1
SPIR-V interpreter and dynamic analysis framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Utils.h
Go to the documentation of this file.
1 // Copyright (c) 2018 the Talvos developers. All rights reserved.
2 //
3 // This file is distributed under a three-clause BSD license. For full license
4 // terms please see the LICENSE file distributed with this source code.
5 
8 
9 #ifndef TALVOS_UTILS_H
10 #define TALVOS_UTILS_H
11 
12 namespace talvos
13 {
14 
17 bool checkEnv(const char *Name, bool Default);
18 
21 unsigned long getEnvUInt(const char *Name, unsigned Default);
22 
23 } // namespace talvos
24 
25 #endif
unsigned long getEnvUInt(const char *Name, unsigned Default)
Returns the integer value for the environment variable Name, or Default if it is not set...
Definition: Utils.cpp:33
bool checkEnv(const char *Name, bool Default)
Returns true if the environment variable Name is set to 1, false for 0, or Default if it is not set...
Definition: Utils.cpp:16