10 #define ARGS_OPTIONS_H 18 BO_IS_EMITTING_LLVM = 1,
19 BO_IS_EMITTING_AST = 2,
20 BO_IS_EMITTING_CODE = 4,
22 BO_IS_OPTIMIZING_O0 = 16,
23 BO_IS_OPTIMIZING_O1 = 32,
80 #endif // ARGS_OPTIONS_H BrainOption get_optimization()
Returns the optimization level to compile Brain files.
Definition: ArgsOptions.cpp:33
static ArgsOptions * instance()
Returns the ArgsOptions instance.
Definition: ArgsOptions.cpp:13
void set_cells_size(int cells_size)
set_cells_size Sets the size of Brain's cells.
Definition: ArgsOptions.cpp:48
int get_cells_size()
get_cells_size
Definition: ArgsOptions.cpp:53
This class handles all the options passed as arguments to Brain. It does so by using an enum of all o...
Definition: ArgsOptions.h:32
bool has_option(BrainOption option)
Verifies and returns true if an option is present (being used) at the moment of execution, otherwise it returns false.
Definition: ArgsOptions.cpp:28
void add_option(BrainOption option)
Add an option to be used by Brain, it does a bitwise OR on the value to add it to an integer...
Definition: ArgsOptions.cpp:23