1
0
Fork 0
forked from fun/fun

The REPL can now be disabled at build time using -DFUN_WITH_REPL=OFF. (0.17.7)

This commit is contained in:
Johannes Findeisen 2025-10-03 15:32:31 +02:00
commit 5c2273da69
4 changed files with 1149 additions and 1220 deletions

20
src/repl.h Normal file
View file

@ -0,0 +1,20 @@
#ifndef FUN_REPL_H
#define FUN_REPL_H
#include "vm.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef FUN_WITH_REPL
// Runs the interactive REPL using the provided, already-initialized VM.
// Returns 0 on normal exit.
int fun_run_repl(VM *vm);
#endif
#ifdef __cplusplus
} // extern "C"
#endif
#endif // FUN_REPL_H