libcwdversion 2.0.0
The C++ Debugging Support Library
Loading...
Searching...
No Matches
environ.h
1// SPDX-FileCopyrightText: 2002-2004, 2018, 2020, 2026 Carlo Wood
2// SPDX-License-Identifier: MIT
3
4#pragma once
5
6#ifndef LIBCWD_PRIVATE_ENVIRON_H
7#define LIBCWD_PRIVATE_ENVIRON_H
8
9namespace libcwd::_private_ {
10
11extern void process_environment_variables();
12
13// Environment variable: LIBCWD_PRINT_LOADING
14// Print the list with "ELFUTILS: new ObjectFile "/usr/lib/libc.so.6" with load base 0x7f490c400000" etc.
15// at the start of the program *even* when this happens before main() is reached and libcw_do and dc::elfutils
16// are still turned off.
17extern bool always_print_loading;
18
19// Environment variable: LIBCWD_NO_STARTUP_MSGS
20// This will suppress all messages that normally could be printed
21// before reaching main, including warning messages.
22// This overrides LIBCWD_PRINT_LOADING.
23extern bool suppress_startup_msgs;
24
25} // namespace libcwd::_private_
26
27#endif // LIBCWD_PRIVATE_ENVIRON_H