1
0
mirror of https://github.com/janet-lang/janet synced 2026-05-03 20:21:28 +00:00

Fix #1604 - Add JANET_DO_ERROR_* defines for failure flags from janet_dobytes.

This commit is contained in:
Calvin Rose
2025-09-01 09:41:58 -05:00
parent bb6ac423a7
commit ae51434a05
3 changed files with 9 additions and 5 deletions

View File

@@ -1616,6 +1616,9 @@ JANET_API JanetTable *janet_core_env(JanetTable *replacements);
JANET_API JanetTable *janet_core_lookup_table(JanetTable *replacements);
/* Execute strings */
#define JANET_DO_ERROR_RUNTIME 0x01
#define JANET_DO_ERROR_COMPILE 0x02
#define JANET_DO_ERROR_PARSE 0x04
JANET_API int janet_dobytes(JanetTable *env, const uint8_t *bytes, int32_t len, const char *sourcePath, Janet *out);
JANET_API int janet_dostring(JanetTable *env, const char *str, const char *sourcePath, Janet *out);