cleanup
This commit is contained in:
+18
-18
@@ -11,6 +11,24 @@
|
||||
#include "picrin/string.h"
|
||||
#include "picrin/error.h"
|
||||
|
||||
void
|
||||
pic_abort(pic_state *pic, const char *msg)
|
||||
{
|
||||
UNUSED(pic);
|
||||
|
||||
fprintf(stderr, "abort: %s\n", msg);
|
||||
fflush(stderr);
|
||||
abort();
|
||||
}
|
||||
|
||||
void
|
||||
pic_warn(pic_state *pic, const char *msg)
|
||||
{
|
||||
UNUSED(pic);
|
||||
|
||||
fprintf(stderr, "warn: %s\n", msg);
|
||||
}
|
||||
|
||||
void
|
||||
pic_push_try(pic_state *pic)
|
||||
{
|
||||
@@ -77,24 +95,6 @@ pic_errorf(pic_state *pic, const char *fmt, ...)
|
||||
pic_throw(pic, e);
|
||||
}
|
||||
|
||||
void
|
||||
pic_abort(pic_state *pic, const char *msg)
|
||||
{
|
||||
UNUSED(pic);
|
||||
|
||||
fprintf(stderr, "abort: %s\n", msg);
|
||||
fflush(stderr);
|
||||
abort();
|
||||
}
|
||||
|
||||
void
|
||||
pic_warn(pic_state *pic, const char *msg)
|
||||
{
|
||||
UNUSED(pic);
|
||||
|
||||
fprintf(stderr, "warn: %s\n", msg);
|
||||
}
|
||||
|
||||
static pic_value
|
||||
pic_error_with_exception_handler(pic_state *pic)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user