This commit is contained in:
Imbus 2025-01-10 08:15:31 +01:00
commit 5626d1eacb
24 changed files with 512 additions and 0 deletions

8
common/CMakeLists.txt Normal file
View file

@ -0,0 +1,8 @@
cmake_minimum_required(VERSION 3.16)
project(Common)
add_library(common INTERFACE)
target_include_directories(common INTERFACE
${CMAKE_CURRENT_SOURCE_DIR}
)

10
common/iassert.h Normal file
View file

@ -0,0 +1,10 @@
#include <cassert>
#include <iostream>
#define ASSERT_MSG(cond, msg) \
do { \
if (!(cond)) { \
std::cerr << "Assertion failed: " << msg << "\n"; \
assert(cond); \
} \
} while (0)