[web] Added REPL support to the library

This commit is contained in:
Sidi Liang 2024-11-04 12:04:31 +08:00
parent 6260cc1665
commit 40976bf0c1
No known key found for this signature in database
GPG Key ID: 9785F5EECFFA5311
1 changed files with 7 additions and 0 deletions

View File

@ -19,6 +19,13 @@ NASAL_EXPORT void nasal_cleanup(void* context);
NASAL_EXPORT const char* nasal_eval(void* context, const char* code, int show_time);
NASAL_EXPORT const char* nasal_get_error(void* context);
// REPL
NASAL_EXPORT void* nasal_repl_init();
NASAL_EXPORT void nasal_repl_cleanup(void* repl_context);
NASAL_EXPORT const char* nasal_repl_eval(void* repl_context, const char* line);
NASAL_EXPORT int nasal_repl_is_complete(void* repl_context, const char* line);
NASAL_EXPORT const char* nasal_repl_get_version();
#ifdef __cplusplus
}
#endif