A translation of lzham to C#.
cmake -G "Ninja" -B out -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_FLAGS="-DNOMINMAX -DNDEBUG" -DCMAKE_CXX_FLAGS="-DNOMINMAX -DNDEBUG" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
Then use the LargeProjectCompiler on compile_commands.json in the out folder.
- Bump
cmake_minimum_requiredto 3.5 in allCMakeLists.txtsince 2.8 is not supported by modern CMake. - In the root
CMakeLists.txt, removeadd_subdirectory(lzhamtest). - Delete
#define LZHAM_FORCE_DEBUGGER_PRESENT 1inlzham_platform.cpp. - In
lzham_mem.cpp, delete the lines starting with#define _msize. - Delete functions and calls to them:
lzham_is_debugger_presentlzham_debug_breaklzham_trace(both overloads)