aboutsummaryrefslogtreecommitdiff
path: root/src/utils.h
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2023-10-27 00:37:29 +0200
committerJohannes Stoelp <johannes.stoelp@gmail.com>2023-10-27 00:37:29 +0200
commit19a5b01f0b2a4a3609a8a8ed32fba8dd376e1905 (patch)
tree83368b6ccc154d3da89dd191f1f24050c729a202 /src/utils.h
parenteef63c3da8e85f9f155dbc313ec8a87bafd883fd (diff)
downloadsysc-playground-19a5b01f0b2a4a3609a8a8ed32fba8dd376e1905.tar.gz
sysc-playground-19a5b01f0b2a4a3609a8a8ed32fba8dd376e1905.zip
move utils into subfolder and different files
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/utils.h b/src/utils.h
deleted file mode 100644
index 1373b90..0000000
--- a/src/utils.h
+++ /dev/null
@@ -1,32 +0,0 @@
-#ifndef UTILS_H
-#define UTILS_H
-
-#include <cstdio>
-
-#define LOG(FMT, ...) \
- do { \
- std::fprintf(stderr, "%10s | %4lld:%2lld | %12s | " FMT "\n", \
- sc_core::sc_time_stamp().to_string().c_str(), \
- sc_core::sc_delta_count(), \
- sc_core::sc_delta_count_at_current_time(), __FUNCTION__, \
- ##__VA_ARGS__); \
- } while (0)
-
-#define LOGM(FMT, ...) LOG("%12s | " FMT, name(), ##__VA_ARGS__)
-
-// -- COLOR LOGS ---------------------------------------------------------------
-
-#define RESET "\e[0m"
-#define BLACK "\e[0;30m"
-#define RED "\e[0;31m"
-#define GREEN "\e[0;32m"
-#define YELLOW "\e[0;33m"
-#define BLUE "\e[0;34m"
-#define MAGENTA "\e[0;35m"
-#define CYAN "\e[0;36m"
-#define WHITE "\e[0;37m"
-
-#define CLOG(COL, FMT, ...) LOG(COL FMT "\e[0m", ##__VA_ARGS__)
-#define CLOGM(COL, FMT, ...) LOGM(COL FMT "\e[0m", ##__VA_ARGS__)
-
-#endif