Separate objects context and interface
This commit is contained in:
parent
cf3f8dbc9c
commit
24f9d8acae
32 changed files with 362 additions and 384 deletions
|
|
@ -21,7 +21,7 @@ namespace tp::obj {
|
|||
|
||||
~ByteCode() {
|
||||
for (auto const_obj : mConstants) {
|
||||
NDO->destroy(const_obj.data());
|
||||
objects_api::destroy(const_obj.data());
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include "core/Object.hpp"
|
||||
#include "Map.hpp"
|
||||
#include "List.hpp"
|
||||
|
||||
namespace tp::obj {
|
||||
|
||||
|
|
@ -18,12 +19,9 @@ namespace tp::obj {
|
|||
|
||||
class ScopeStack {
|
||||
|
||||
enum : alni {
|
||||
MAX_STACK_SIZE = 1024 * 4
|
||||
};
|
||||
enum : alni { MAX_STACK_SIZE = 1024 * 4 };
|
||||
|
||||
public:
|
||||
|
||||
Scope* mBuff;
|
||||
ualni mIdx;
|
||||
ualni mIterIdx;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue