-
Notifications
You must be signed in to change notification settings - Fork 3
check File for absolute path on construction #76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,87 @@ | ||
| # mkn::kul — C++ API Reference | ||
|
|
||
| **mkn::kul** (`Make Know Utility Library`) is a modern C++20 utility library providing cross-platform abstractions for threading, I/O, processes, logging, containers, and more. | ||
|
|
||
| All public symbols live under the `mkn::kul` namespace (or sub-namespaces noted per section). | ||
|
|
||
| --- | ||
|
|
||
| ## Table of Contents | ||
|
|
||
| 1. [Core Definitions (`defs.hpp`)](#1-core-definitions-defshpp) | ||
| 2. [Exception Handling (`except.hpp`)](doc/mkn/kul/except.md) | ||
| 3. [Assertions (`assert.hpp`)](doc/mkn/kul/assert.md) | ||
| 4. [Type Trait Helpers (`decltype.hpp`)](#4-type-trait-helpers-decltypehpp) | ||
| 5. [Span Containers (`span.hpp`)](doc/mkn/kul/span.md) | ||
| 6. [Custom Allocators (`alloc.hpp`)](doc/mkn/kul/alloc.md) | ||
| 7. [Vectors with Custom Allocators (`vector.hpp`)](doc/mkn/kul/vector.md) | ||
| 8. [Byte Utilities (`byte.hpp`)](doc/mkn/kul/byte.md) | ||
| 9. [String Utilities (`string.hpp`)](doc/mkn/kul/string.md) | ||
| 10. [Wide String Utilities (`wstring.hpp`)](doc/mkn/kul/wstring.md) | ||
| 11. [Floating-Point Utilities (`float.hpp`)](doc/mkn/kul/float.md) | ||
| 12. [Hashing (`hash.hpp`)](doc/mkn/kul/hash.md) | ||
| 13. [Hash Maps and Sets (`map.hpp`)](doc/mkn/kul/map.md) | ||
| 14. [Time and Date (`time.hpp`)](doc/mkn/kul/time.md) | ||
| 15. [Logging (`log.hpp`)](doc/mkn/kul/log.md) | ||
| 16. [Threading (`threads.hpp`)](doc/mkn/kul/threads.md) | ||
| 17. [File I/O (`io.hpp`)](doc/mkn/kul/io.md) | ||
| 18. [Environment Variables (`env.hpp`)](doc/mkn/kul/env.md) | ||
| 19. [Filesystem Abstractions (`os.hpp`)](doc/mkn/kul/os.md) | ||
| 20. [Process Management (`proc.hpp`)](doc/mkn/kul/proc.md) | ||
| 21. [Signal Handling (`signal.hpp`)](doc/mkn/kul/signal.md) | ||
| 22. [Command-Line Interface (`cli.hpp`)](doc/mkn/kul/cli.md) | ||
| 23. [Debugging and Stack Traces (`dbg.hpp`)](doc/mkn/kul/dbg.md) | ||
| 24. [Compile-Time Iteration (`for.hpp`)](doc/mkn/kul/for.md) | ||
| 25. [Tuple Utilities (`tuple.hpp`)](doc/mkn/kul/tuple.md) | ||
| 26. [Aggregate Comparison (`all.hpp`)](doc/mkn/kul/all.md) | ||
| 27. [Zip Iterator (`zip.hpp`)](doc/mkn/kul/zip.md) | ||
| 28. [Math Utilities (`math.hpp`)](doc/mkn/kul/math.md) | ||
| 29. [YAML Parsing (`yaml.hpp`)](doc/mkn/kul/yaml.md) | ||
| 30. [Better Object Notation (`bon.hpp`)](doc/mkn/kul/bon.md) | ||
| 31. [Source Control Management (`scm.hpp`)](doc/mkn/kul/scm.md) | ||
| 32. [CPU Utilities (`cpu.hpp`)](doc/mkn/kul/cpu.md) | ||
| 33. [Inter-Process Communication (`ipc.hpp`)](doc/mkn/kul/ipc.md) | ||
| 34. [System Utilities (`sys.hpp`)](doc/mkn/kul/sys.md) | ||
|
|
||
| --- | ||
|
|
||
| ## 1. Core Definitions (`defs.hpp`) | ||
|
|
||
| Platform detection and utility macros. | ||
|
|
||
| ### Macros | ||
|
|
||
| | Macro | Description | | ||
| |-------|-------------| | ||
| | `MKN_KUL_STR(x)` | Stringify `x` | | ||
| | `MKN_KUL_STR_CAT(x, y)` | Token-paste `x` and `y` | | ||
| | `MKN_KUL_PUBLISH` | Mark a symbol for DLL export / `visibility("default")` | | ||
| | `MKN_KUL_PRIVATE` | Mark a symbol as `visibility("hidden")` | | ||
| | `MKN_KUL_IS_WIN` | `1` on Windows, `0` otherwise | | ||
| | `MKN_KUL_IS_NIX` | `1` on Linux, `0` otherwise | | ||
| | `MKN_KUL_IS_BSD` | `1` on BSD, `0` otherwise | | ||
| | `MKN_KUL_DEBUG_DO(...)` | Expands to `__VA_ARGS__` in debug builds; empty in release | | ||
| | `MKN_KUL_DEBUG_DO_ELSE(...)` | Inverse of `MKN_KUL_DEBUG_DO` | | ||
|
|
||
| --- | ||
|
|
||
| ## Environment Variables | ||
|
|
||
| | Variable | Effect | | ||
| |----------|--------| | ||
| | `KLOG` | Log verbosity: `0`=off, `1`=INF, `2`=ERR, `3`=DBG, `4`=OTH, `5`=TRC | | ||
| | `MKN_KUL_GIT_CO` | Extra args passed to `git clone` during dependency fetch | | ||
|
|
||
| --- | ||
|
|
||
| ## Platform Notes | ||
|
|
||
| | Header | Windows | Linux | BSD | | ||
| |--------|---------|-------|-----| | ||
| | `cpu.hpp` | `os/win/cpu.hpp` | `os/nix/cpu.hpp` | `os/bsd/cpu.hpp` | | ||
| | `env.hpp` | `os/win/env.hpp` | `os/nixish/env.hpp` | `os/nixish/env.hpp` | | ||
| | `ipc.hpp` | `os/win/ipc.hpp` | `os/nixish/ipc.hpp` | `os/nixish/ipc.hpp` | | ||
| | `signal.hpp` | `os/win/signal.hpp` | `os/nixish/signal.hpp` | `os/nixish/signal.hpp` | | ||
| | `sys.hpp` | `os/win/sys.hpp` | `os/nixish/sys.hpp` | `os/nixish/sys.hpp` | | ||
| | `proc.hpp` | `os/win/proc.hpp` | `os/nixish/proc.hpp` + `os/nix/proc.os.hpp` | similar | | ||
| | `threads.hpp` | `os/win/threads.os.hpp` | `os/nixish/threads.os.hpp` | similar | | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Fix the broken Table of Contents fragment.
Line 14 links to
#4-type-trait-helpers-decltypehpp, butAPI.mdhas no matching heading. Add the missing section or point this entry to the actualdecltypedocumentation page.🧰 Tools
🪛 markdownlint-cli2 (0.23.2)
[warning] 14-14: Link fragments should be valid
(MD051, link-fragments)
🤖 Prompt for AI Agents
Source: Linters/SAST tools