mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
some fix
This commit is contained in:
parent
2093f6f10f
commit
e50761364d
@ -7,7 +7,7 @@ from typing import List, Dict
|
|||||||
|
|
||||||
assert os.system("python prebuild.py") == 0
|
assert os.system("python prebuild.py") == 0
|
||||||
|
|
||||||
with open("include/pocketpy/opcodes.h", "rt", encoding='utf-8') as f:
|
with open("include/pocketpy/xmacros/opcodes.h", "rt", encoding='utf-8') as f:
|
||||||
OPCODES_TEXT = '\n' + f.read() + '\n'
|
OPCODES_TEXT = '\n' + f.read() + '\n'
|
||||||
|
|
||||||
class Header:
|
class Header:
|
||||||
|
@ -21,7 +21,7 @@ enum NameScope { NAME_LOCAL, NAME_GLOBAL, NAME_GLOBAL_UNKNOWN };
|
|||||||
enum Opcode : uint8_t {
|
enum Opcode : uint8_t {
|
||||||
|
|
||||||
#define OPCODE(name) OP_##name,
|
#define OPCODE(name) OP_##name,
|
||||||
#include "pocketpy/opcodes.h"
|
#include "pocketpy/xmacros/opcodes.h"
|
||||||
#undef OPCODE
|
#undef OPCODE
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -102,6 +102,8 @@ void SMALLMAP_METHOD(clear)(SMALLMAP* self) {
|
|||||||
#undef KV
|
#undef KV
|
||||||
#undef SMALLMAP
|
#undef SMALLMAP
|
||||||
#undef SMALLMAP_METHOD
|
#undef SMALLMAP_METHOD
|
||||||
|
#undef CONCAT
|
||||||
|
#undef CONCAT_
|
||||||
|
|
||||||
#undef K
|
#undef K
|
||||||
#undef V
|
#undef V
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
const static char* OP_NAMES[] = {
|
const static char* OP_NAMES[] = {
|
||||||
#define OPCODE(name) #name,
|
#define OPCODE(name) #name,
|
||||||
#include "pocketpy/opcodes.h"
|
#include "pocketpy/xmacros/opcodes.h"
|
||||||
#undef OPCODE
|
#undef OPCODE
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user