1
0
Mirror von https://github.com/tkuschel/bees.git synchronisiert 2026-06-19 06:57:54 +02:00

crucible: Allow setting a relative path option for name_fd()

This commit adds an option to store a relative path in prepartion for
more human-friendly log output.

Signed-off-by: Kai Krakow <kai@kaishome.de>
Dieser Commit ist enthalten in:
Kai Krakow
2017-11-12 15:42:37 +01:00
Ursprung 71514e7229
Commit 755f16a948
2 geänderte Dateien mit 26 neuen und 1 gelöschten Zeilen
+4
Datei anzeigen
@@ -57,6 +57,10 @@ namespace crucible {
typedef ResourceHandle<int, IOHandle> Fd;
static string __relative_path;
void set_relative_path(string path);
string relative_path();
// Functions named "foo_or_die" throw exceptions on failure.
// Attempt to open the file with the given mode