6 #define EBAT_CONFIG_HELLO_LINE ">"
7 #define EBAT_CONFIG_CRITICAL_STOP 1
8 #define EBAT_CONFIG_FILEIO_EXIST 1
9 #define EBAT_CONFIG_SYSTEM_SET 1
15 #define EBAT_INVALIDARGC(Line, Cur, Req) \
17 bat_fatalerror(Line, "Check the number of arguments! Current %d, required %d.", Cur, Req);\
21 #define EBAT_INVALIDMINARGC(Line, Cur, Req) \
23 bat_fatalerror(Line, "Not enough arguments! Current %d, required %d.", Cur, Req);\
27 #define eBatCheckModule(Line, Module, ModuleName) \
29 bat_fatalerror(Line, "The module \"%s\" is not built for eBat.", ModuleName);\
33 #define eBatCheckMixingData(Line, Cur, Req) \
35 bat_fatalerror(Line, "Data type mismatch. \"%s\" Received, \"%s\" Required", bat_debug_type(Cur), bat_debug_type(Req)); \
39 #define eBatCheckInputValue(Line) \
40 bat_fatalerror(Line, "You cannot compare different types of data. Only NUMBERS and VARIABLES are allowed to be compared."); \
43 #define eBatCheckVariable(Line, Key, Var) \
44 char* Var = bat_runtime_system_get(Key); \
46 bat_fatalerror(Line, "The variable \"%s\" was not found.", Key); \
50 #define eBatCheckGoTo(Line, Key) \
52 bat_fatalerror(Line, "The goto to line was not found."); \
55 int bar_runtime_system_exec(
int argc,
char** argv);
56 void bat_runtime_system_echo(
char* text,
int newline,
int endline);
57 void bat_runtime_system_set(
char* key,
char* val);
58 char* bat_runtime_system_get(
char* key);
59 void bat_runtime_system_pause();
61 int bat_runtime_fileio_exist(
char* path);
63 int bat_strtol(
char *
string);
64 void bat_trim(
char*
string);
65 void bat_str_debug(
char*
string);
66 char* bat_toLower(
char* str);
68 int bat_runtime_exec(
BAT_T* bat);