The REPL can now be disabled at build time using -DFUN_WITH_REPL=OFF. (0.17.7)
This commit is contained in:
parent
f68d09c596
commit
5c2273da69
4 changed files with 1149 additions and 1220 deletions
20
src/repl.h
Normal file
20
src/repl.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue