lab5: add assembler and dynamic pipeline system emulator
This commit is contained in:
+18
-1
@@ -1,9 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
#include "config.h"
|
||||
|
||||
#if DEBUG == 1
|
||||
#if PRINT_DEBUG == 1
|
||||
#if PRINT_DISABLE_PREFIXES == 1
|
||||
#define pr_debug(...) std::cout << "debug: " << __VA_ARGS__ << "\n"
|
||||
#define pri_debug(...) std::cout << __VA_ARGS__
|
||||
@@ -19,6 +20,22 @@
|
||||
#define prs_debug(...) do {} while (0)
|
||||
#endif
|
||||
|
||||
#if PRINT_INFO == 1
|
||||
#if PRINT_DISABLE_PREFIXES == 1
|
||||
#define pr_info(...) std::cout << "info: " << __VA_ARGS__ << "\n"
|
||||
#define pri_info(...) std::cout << __VA_ARGS__
|
||||
#define prs_info(...) std::cout << "info: " << __VA_ARGS__
|
||||
#else
|
||||
#define pr_info(...) std::cout << "[" << __FILE__ << ":" << __LINE__ << " " << __func__ << "] info: " << __VA_ARGS__ << "\n"
|
||||
#define pri_info(...) std::cout << __VA_ARGS__
|
||||
#define prs_info(...) std::cout << "[" << __FILE__ << ":" << __LINE__ << " " << __func__ << "] info: " << __VA_ARGS__
|
||||
#endif
|
||||
#else
|
||||
#define pr_info(...) do {} while (0)
|
||||
#define pri_info(...) do {} while (0)
|
||||
#define prs_info(...) do {} while (0)
|
||||
#endif
|
||||
|
||||
#if PRINT_DISABLE_PREFIXES == 1
|
||||
#define pr_warn(...) std::cout << "warning: " << __VA_ARGS__ << "\n"
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user