aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/include
diff options
context:
space:
mode:
authorCalvin Rose <calsrose@gmail.com>2025-09-01 09:41:58 -0500
committerCalvin Rose <calsrose@gmail.com>2025-09-01 09:43:27 -0500
commitae51434a05bbb4c58a2a35c1428a5053182eb1ca (patch)
treee5cf466891eb680ded060532464007f97d349dba /src/include
parentMerge pull request #1637 from jsks/spelling-fixes (diff)
Fix #1604 - Add JANET_DO_ERROR_* defines for failure flags from janet_dobytes.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/janet.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/janet.h b/src/include/janet.h
index 7ac2fdd3..4d48de95 100644
--- a/src/include/janet.h
+++ b/src/include/janet.h
@@ -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);