dump
This commit is contained in:
commit
5626d1eacb
24 changed files with 512 additions and 0 deletions
8
common/CMakeLists.txt
Normal file
8
common/CMakeLists.txt
Normal 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
10
common/iassert.h
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue