mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 19:40:18 +00:00
Update codeobject.h
Update codeobject.h
This commit is contained in:
parent
53b33eb2f2
commit
32f0525484
@ -121,8 +121,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
_Str errorSnapshot(){
|
_Str errorSnapshot(){
|
||||||
int line = -1;
|
int line = code->co_code[ip-1].line;
|
||||||
if(!isCodeEnd()) line = code->co_code[ip-1].line;
|
|
||||||
return code->src->snapshot(line);
|
return code->src->snapshot(line);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user