mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-24 13:30:18 +00:00
fix a bug
This commit is contained in:
parent
4eff4ea076
commit
f67861b24e
@ -55,7 +55,7 @@ PyVar VM::run_frame(Frame* frame){
|
|||||||
if(byte.op == OP_FAST_INDEX) frame->push(ref.get(this, frame));
|
if(byte.op == OP_FAST_INDEX) frame->push(ref.get(this, frame));
|
||||||
else frame->push(PyRef(ref));
|
else frame->push(PyRef(ref));
|
||||||
} continue;
|
} continue;
|
||||||
case OP_ROT_TWO: std::swap(frame->top(), frame->top_1()); continue;
|
case OP_ROT_TWO: ::std::swap(frame->top(), frame->top_1()); continue;
|
||||||
case OP_STORE_REF: {
|
case OP_STORE_REF: {
|
||||||
// PyVar obj = frame->pop_value(this);
|
// PyVar obj = frame->pop_value(this);
|
||||||
// PyVarRef r = frame->pop();
|
// PyVarRef r = frame->pop();
|
||||||
|
|||||||
@ -26,6 +26,7 @@
|
|||||||
#include <map>
|
#include <map>
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
#include <fstream>
|
||||||
|
|
||||||
#define PK_VERSION "0.9.1"
|
#define PK_VERSION "0.9.1"
|
||||||
|
|
||||||
@ -43,6 +44,8 @@ typedef double f64;
|
|||||||
|
|
||||||
namespace pkpy{
|
namespace pkpy{
|
||||||
|
|
||||||
|
namespace std = ::std;
|
||||||
|
|
||||||
struct Dummy { };
|
struct Dummy { };
|
||||||
struct DummyInstance { };
|
struct DummyInstance { };
|
||||||
struct DummyModule { };
|
struct DummyModule { };
|
||||||
|
|||||||
@ -615,7 +615,6 @@ void add_module_dis(VM* vm){
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <fstream>
|
|
||||||
struct FileIO {
|
struct FileIO {
|
||||||
PY_CLASS(io, FileIO)
|
PY_CLASS(io, FileIO)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user