change order

This commit is contained in:
blueloveTH 2023-02-21 21:13:45 +08:00
parent b0cfed4d6c
commit 6854128bac
3 changed files with 7 additions and 12 deletions

View File

@ -2,7 +2,7 @@ with open("src/opcodes.h", "rt", encoding='utf-8') as f:
OPCODES_TEXT = f.read()
pipeline = [
["hash_table5.hpp", "common.h", "memory.h", "str.h", "safestl.h", "builtins.h", "error.h"],
["common.h", "hash_table5.hpp", "memory.h", "str.h", "safestl.h", "builtins.h", "error.h"],
["obj.h", "parser.h", "ref.h", "codeobject.h", "frame.h"],
["vm.h", "ceval.h", "compiler.h", "repl.h"],
["iter.h", "pocketpy.h"]

View File

@ -29,11 +29,6 @@
#define EMH_EXT 1
#define EMH_FIND_HIT 1
#include "hash_table5.hpp"
namespace pkpy {
template<typename... Args>
using HashMap = emhash5::HashMap<Args...>;
}
#ifdef POCKETPY_H
#define UNREACHABLE() throw std::runtime_error( "L" + std::to_string(__LINE__) + " UNREACHABLE()!");
@ -66,12 +61,6 @@ struct Type {
}
};
template<typename T>
void* tid() {
static volatile int8_t _x;
return (void*)(&_x);
}
//#define THREAD_LOCAL thread_local
#define THREAD_LOCAL

View File

@ -9,6 +9,12 @@ typedef pkpy::shared_ptr<PyObject> PyVar;
typedef PyVar PyVarOrNull;
typedef PyVar PyVarRef;
#include "hash_table5.hpp"
namespace pkpy {
template<typename... Args>
using HashMap = emhash5::HashMap<Args...>;
}
namespace pkpy{
class List: public std::vector<PyVar> {
PyVar& at(size_t) = delete;