/**
* Global state
*
* Created on 2021/11/13.
*/
#ifndef FORTH_FH_GLOBALS_H
#define FORTH_FH_GLOBALS_H
#include <stdbool.h>
/** Forth runtime global state */
struct fh_global_s {
/** Verbose logging enabled */
bool verbose;
/** Interactive mode (i.e. not started with a file argument) */
bool interactive;
/** Echo read lines in non-interactive mode */
bool echo;
/** On error in batch mode, fall into console for debugging */
bool rescue;
};
extern struct fh_global_s fh_globals;
#endif //FORTH_FH_GLOBALS_H