Apply cpp naming to files

This commit is contained in:
IlyaShurupov 2024-03-23 12:09:51 +03:00
parent 430ba869d0
commit 9a9262f6d0
73 changed files with 160 additions and 160 deletions

View file

@ -0,0 +1,28 @@
#pragma once
#include "OperatoinCodes.hpp"
#include "primitives/IntObject.hpp"
#include "primitives/StringObject.hpp"
#include "Buffer.hpp"
#include <string>
namespace obj {
typedef Object* ConstData;
struct ByteCode {
tp::Buffer<ConstData> mConstants;
tp::Buffer<OpCode> mInstructions;
tp::ualni mInstructionIdx = 0;
tp::ualni mArgumentsLoaded = 0;
~ByteCode() {
for (auto const_obj : mConstants) {
NDO->destroy(const_obj.data());
}
}
};
};