blueloveTH hace 1 año
padre
commit
e50761364d

+ 1 - 1
amalgamate.py

@@ -7,7 +7,7 @@ from typing import List, Dict
 
 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'
 
 class Header:

+ 1 - 1
include/pocketpy/objects/codeobject.hpp

@@ -21,7 +21,7 @@ enum NameScope { NAME_LOCAL, NAME_GLOBAL, NAME_GLOBAL_UNKNOWN };
 enum Opcode : uint8_t {
 
 #define OPCODE(name) OP_##name,
-#include "pocketpy/opcodes.h"
+#include "pocketpy/xmacros/opcodes.h"
 #undef OPCODE
 };
 

+ 0 - 0
include/pocketpy/opcodes.h → include/pocketpy/xmacros/opcodes.h


+ 2 - 0
include/pocketpy/xmacros/smallmap.h

@@ -102,6 +102,8 @@ void SMALLMAP_METHOD(clear)(SMALLMAP* self) {
 #undef KV
 #undef SMALLMAP
 #undef SMALLMAP_METHOD
+#undef CONCAT
+#undef CONCAT_
 
 #undef K
 #undef V

+ 1 - 1
src/interpreter/vm.cpp

@@ -11,7 +11,7 @@
 
 const static char* OP_NAMES[] = {
 #define OPCODE(name) #name,
-#include "pocketpy/opcodes.h"
+#include "pocketpy/xmacros/opcodes.h"
 #undef OPCODE
 };