rdbo / libmem

Advanced Game Hacking Library for C, Modern C++, Rust and Python (Windows/Linux/FreeBSD) (Process/Memory Hacking) (Hooking/Detouring) (Cross Platform) (x86/x64) (DLL/SO Injection) (Internal/External) (Assembler/Disassembler)
GNU Affero General Public License v3.0
807 stars 98 forks source link

Modulate libmem.h #74

Closed rdbo closed 1 year ago

rdbo commented 1 year ago

Split the libmem.h APIs into the same API types as in src. For example, create process.h, module.h, etc, and include all of those in libmem.h. This will enable faster compilation when needing to modify a specific API header: if you modify libmem.h now, everything that includes it will be recompiled. If you split it into multiple headers, only the things that include the modified header will be recompiled, which is faster.

rdbo commented 1 year ago

This won't work, because the headers won't have libmem's definitions