Skip to content

Commit 0c9e470

Browse files
committed
Cleanup: remove runtime_error shim
A long time ago, we renamed runtime_error to ASL_runtime_error but we added a backwards compatibility shim to avoid breaking code. The time has come to remove this since C++ stdlib has a conflicting name
1 parent b63f6e0 commit 0c9e470

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

demo/simulator.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ ASL_assert(const char* loc, const char* expr, bool c)
116116
}
117117

118118
void
119-
runtime_error(const char *msg)
119+
ASL_runtime_error(const char *msg)
120120
{
121121
fprintf(ASL_error_file, "Runtime error: %s\n", msg);
122122
fprintf(ASL_error_file, "This error indicates an error in the specification and should\n");

runtime/include/asl/error.h

-4
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ ASL_NORETURN void ASL_runtime_error(const char *msg);
2424

2525
#define ASL_runtime_error_if(cond, msg) if (cond) ASL_runtime_error(msg);
2626

27-
// Temporary shim for backwards compatibility
28-
// todo: remove once all uses have been removed
29-
#define runtime_error(msg) ASL_runtime_error(msg)
30-
3127
void ASL_assert(const char* loc, const char* expr, bool c);
3228

3329
#ifdef __cplusplus

0 commit comments

Comments
 (0)