Various improvements to scripting lang
- Errors will now be more precise, there are now 2 separate errors for a function lookup failure and a failure inside a function - Errors will now show which line number they failed at, instead of the character offset - Minus values are not considered errors anymore, however, printing them does not work well - Gotos now make a @RETURN variable to make making functions easier
This commit is contained in:
@@ -21,10 +21,11 @@ enum utils_err_codes_te_call {
|
||||
ERR_EMMC_WRITE_FAILED,
|
||||
ERR_FILE_TOO_BIG_FOR_DEST,
|
||||
ERR_SD_EJECTED,
|
||||
ERR_PARSE_FAIL,
|
||||
ERR_SCRIPT_LOOKUP_FAIL,
|
||||
ERR_CANNOT_COPY_FILE_TO_FS_PART,
|
||||
ERR_NO_DESTINATION,
|
||||
ERR_INI_PARSE_FAIL
|
||||
ERR_INI_PARSE_FAIL,
|
||||
ERR_IN_FUNC
|
||||
};
|
||||
|
||||
extern const char *utils_err_codes_te[];
|
||||
|
||||
@@ -50,10 +50,11 @@ const char *utils_err_codes_te[] = { // these start at 50
|
||||
"EMMC WRITE FAILED",
|
||||
"FILE TOO BIG FOR DEST",
|
||||
"SD EJECTED",
|
||||
"PARSING FAILED",
|
||||
"FUNC LOOKUP FAIL",
|
||||
"CANNOT COPY FILE TO FS PART",
|
||||
"NO DESTINATION",
|
||||
"INI PARSE FAIL"
|
||||
"INI PARSE FAIL",
|
||||
"ERR IN FUNC"
|
||||
};
|
||||
/*
|
||||
const char *pkg2names[] = {
|
||||
|
||||
Reference in New Issue
Block a user