1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-30 15:13:03 +00:00

Remove vm crash return and use error instead.

This commit is contained in:
bakpakin
2017-07-09 16:15:44 -04:00
parent de9d7bcfdc
commit 53cead0bab
3 changed files with 4 additions and 13 deletions

View File

@@ -294,7 +294,6 @@ struct GstUserdataHeader {
/* VM return status from c function */
#define GST_RETURN_OK 0
#define GST_RETURN_ERROR 1
#define GST_RETURN_CRASH 2
/* The VM state */
struct Gst {
@@ -314,8 +313,7 @@ struct Gst {
GstTable *registry;
GstTable *env;
/* Return state */
const char *crash;
GstValue ret; /* Returned value from gst_start. */
GstValue ret;
};
/* The type of a ParseState */