From 4c4728f8ef3659a2709409c81fa2bb3f036cd420 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ya=C4=9F=C4=B1z=20Zengin?= Date: Tue, 2 Sep 2025 13:37:01 +0300 Subject: [PATCH] Updated Library Documentation (markdown) --- Library-Documentation.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Library-Documentation.md b/Library-Documentation.md index 326c316..24113da 100644 --- a/Library-Documentation.md +++ b/Library-Documentation.md @@ -618,6 +618,18 @@ If you're going to use it prebuilt, you can find it in the PMT releases. Or you --- +### Macros +There aren't many macros. + +```c++ +// You can take a look also at PMT functions for usage examples... +#define COMMON_LAMBDA_PARAMS \ + (const std::string &partition, const PartitionMap::BasicInf props) + +auto func = [] COMMON_LAMDA_PARAMS -> bool { /* Code... */ }; +``` + + ### Namespaces #### PartitionMap @@ -777,6 +789,13 @@ constexpr uint64_t LK_IMAGE = 0x00006B6C; // ... and more ``` +> There are also maps that keep these ready. +```c++ +extern std::map FileSystemMagicMap; +extern std::map AndroidMagicMap; +extern std::map MagicMap; +``` + --- ### Compling and linking