Initial setup for CLion
This commit is contained in:
11
engines/TensorRTAPI/include/macros.h
Normal file
11
engines/TensorRTAPI/include/macros.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
#include <spdlog/spdlog.h>
|
||||
|
||||
#define CHECK(condition) \
|
||||
do { \
|
||||
if (!(condition)) { \
|
||||
spdlog::error("Assertion failed: ({}), function {}, file {}, line {}.", #condition, __FUNCTION__, __FILE__, __LINE__); \
|
||||
abort(); \
|
||||
} \
|
||||
} while (false);
|
||||
Reference in New Issue
Block a user