Halide
Halide::Internal::Test Namespace Reference

Functions

std::string get_env_variable (const char *name)
 Get value of an environment variable. More...
 
std::string get_current_directory ()
 

Function Documentation

◆ get_env_variable()

std::string Halide::Internal::Test::get_env_variable ( char const *  env_var_name)
inline

Get value of an environment variable.

Returns its value is defined in the environment. If the var is not defined, an empty string is returned.

Definition at line 26 of file halide_test_dirs.h.

References buf, and getenv().

Referenced by Halide::Internal::get_test_tmp_dir().

◆ get_current_directory()

std::string Halide::Internal::Test::get_current_directory ( )
inline

Definition at line 45 of file halide_test_dirs.h.

References free().

Referenced by Halide::Internal::get_test_tmp_dir().