mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-22 20:40:18 +00:00
Update vm.h
This commit is contained in:
parent
49c68d16cd
commit
a6673e0c5e
5
src/vm.h
5
src/vm.h
@ -217,13 +217,10 @@ public:
|
|||||||
return _exec(code, _module);
|
return _exec(code, _module);
|
||||||
}catch (const pkpy::Exception& e){
|
}catch (const pkpy::Exception& e){
|
||||||
*_stderr << e.summary() << '\n';
|
*_stderr << e.summary() << '\n';
|
||||||
}
|
}catch (const std::exception& e) {
|
||||||
#if !defined(__GNUC__)
|
|
||||||
catch (const std::exception& e) {
|
|
||||||
*_stderr << "An std::exception occurred! It could be a bug.\n";
|
*_stderr << "An std::exception occurred! It could be a bug.\n";
|
||||||
*_stderr << e.what() << '\n';
|
*_stderr << e.what() << '\n';
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
callstack = {};
|
callstack = {};
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user