fixed bug in attaching nics to hosts, changed documentation format and generator (buggy but usable)

This commit is contained in:
2025-09-14 00:40:53 -04:00
parent 9ab64e18a4
commit c4141cd683
40 changed files with 5223 additions and 577 deletions

View File

@@ -1,9 +1,15 @@
# core/error.h
## Free functions
### `std::mutex &error_mutex() noexcept;`
### `inline T&& show(std::string_view name, T&& value) noexcept { ... }`
### `std::lock_guard<std::mutex> lock(error_mutex());`
### `inline T&& eval_and_show(std::string_view expr, T&& value) noexcept { ... }`
### `std::lock_guard<std::mutex> lock(error_mutex());`
## `dofs::log_error`
`void log_error(std::string_view type, std::string_view message, std::optional<uint64_t> timestamp = std::nullopt) noexcept;`
## `DOFS_ERROR`
`#define DOFS_ERROR(TYPE, MSG)`
## `DOFS_ERROR_ST`
`#define DOFS_ERROR_ST(TYPE, SRC, MSG, TS)`
## `DOFS_ERROR_T`
`#define DOFS_ERROR_T(TYPE, MSG, TS)`
## `DOFS_EVAL`
`#define DOFS_EVAL(EXPR)`
## `DOFS_SHOW`
`#define DOFS_SHOW(VAR)`
## `FORMAT`
`#define FORMAT(VAR)`