aboutsummaryrefslogtreecommitdiff
path: root/reference_model/src/func_debug.h
diff options
context:
space:
mode:
authorKevin Cheng <kevin.cheng@arm.com>2021-09-28 16:14:52 -0700
committerKevin Cheng <kevin.cheng@arm.com>2021-09-30 15:09:13 -0700
commit903763c07f1c8a77783735b05a6a9d722bee1639 (patch)
treeee76f447927e1d07b814391d8f2fbf9a0a7094ab /reference_model/src/func_debug.h
parent7fb8fa1826812c305cfcc64e3df256f408fea5a0 (diff)
downloadreference_model-903763c07f1c8a77783735b05a6a9d722bee1639.tar.gz
Add SUBGRAPH_ERROR_IF() to catch graph-level error.
- Also replace SIMPLE_FATAL_ERROR() with FATAL_ERROR() since they're duplicate - Replace FATAL_ERROR()/ASSERT_MSG() with ERROR_IF_SUBGRAPH() if the condition is a graph error FATAL_ERROR()/ASSERT() should only be used by model internal/runtime error like file reading. Signed-off-by: Kevin Cheng <kevin.cheng@arm.com> Change-Id: If1e1e2488054a0ecd800fb0f2ea6487019282500
Diffstat (limited to 'reference_model/src/func_debug.h')
-rw-r--r--reference_model/src/func_debug.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/reference_model/src/func_debug.h b/reference_model/src/func_debug.h
index 26901cf..f2790a4 100644
--- a/reference_model/src/func_debug.h
+++ b/reference_model/src/func_debug.h
@@ -145,12 +145,6 @@ struct func_debug_t
abort();
#endif
-#ifndef SIMPLE_FATAL_ERROR
-#define SIMPLE_FATAL_ERROR(fmt, ...) \
- fprintf(stderr, COL_FATAL(fmt) "\n", ##__VA_ARGS__); \
- exit(1);
-#endif
-
void func_debug_warning(
func_debug_t* func_debug, const char* file, const char* func, const int line, const char* fmt, ...);
#ifndef WARNING