Trying to build a forth runtime in C
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forth/include/fh_globals.h

27 lines
534 B

/**
* Global state
*
* Created on 2021/11/13.
*/
#ifndef FORTH_FH_GLOBALS_H
#define FORTH_FH_GLOBALS_H
3 years ago
#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