diff --git a/test/函数块.cpp b/test/函数块.cpp index 1c33a81..c443c61 100644 --- a/test/函数块.cpp +++ b/test/函数块.cpp @@ -273,12 +273,12 @@ static int SQloadfile(uint32_t v, const wchar_t* filename, bool printerror) if (SQfread(&uc, 1, sizeof(uc), file) == 0) { SQ__Fclose(file); - return SQ_Throwerror(v, _SC("io error")); + return 1; } if (uc != 0xBF) { SQ__Fclose(file); - return SQ_Throwerror(v, _SC("Unrecognozed ecoding")); + return 1; } func = SQ_io_file_lexfeed_UTF8; break;//UTF-8 ; @@ -316,7 +316,7 @@ static int SQloadfile(uint32_t v, const wchar_t* filename, bool printerror) SQ__Fclose(file); return -1; } - return SQ_Throwerror(v, _SC("cannot open the file")); + return 1; } static int SQdofile(uint32_t v, const wchar_t* filename, bool retval, bool printerror)