refactor: Move error() from util/system.h to logging.h

error is a low-level function with a sole dependency on LogPrintf, which
is defined in logging.h

The background of this commit is an ongoing effort to decouple the
libbitcoinkernel library from the ArgsManager defined in system.h.
Moving the function out of system.h allows including it from a separate
source file without including the ArgsManager definitions from system.h.
This commit is contained in:
Ben Woosley
2023-03-06 22:01:13 +01:00
committed by TheCharlatan
parent e7333b420e
commit aaced5633b
12 changed files with 18 additions and 12 deletions

View File

@@ -11,6 +11,7 @@
#include <cstdint>
#include <fs.h>
#include <hash.h>
#include <logging.h>
#include <logging/timer.h>
#include <netbase.h>
#include <netgroup.h>