mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-22 04:20:17 +00:00
Update compiler.cpp
This commit is contained in:
parent
3082645733
commit
0c3134f5c5
@ -1278,10 +1278,11 @@ __EAT_DOTS_END:
|
|||||||
std::string_view version = deserializer.read_string('\n');
|
std::string_view version = deserializer.read_string('\n');
|
||||||
|
|
||||||
if(version != PK_VERSION){
|
if(version != PK_VERSION){
|
||||||
SyntaxError(_S("precompiled version mismatch: ", version, "!=" PK_VERSION));
|
Str error = _S("precompiled version mismatch: ", version, "!=" PK_VERSION);
|
||||||
|
throw std::runtime_error(error.c_str());
|
||||||
}
|
}
|
||||||
if(deserializer.read_uint('\n') != (i64)mode()){
|
if(deserializer.read_uint('\n') != (i64)mode()){
|
||||||
SyntaxError("precompiled mode mismatch");
|
throw std::runtime_error("precompiled mode mismatch");
|
||||||
}
|
}
|
||||||
|
|
||||||
int count = deserializer.read_count();
|
int count = deserializer.read_count();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user