Apply cpp naming to files

This commit is contained in:
IlyaShurupov 2024-03-23 12:09:51 +03:00 committed by Ilya Shurupov
parent 89eec0e329
commit 9d01ba2c8a
73 changed files with 160 additions and 160 deletions

View file

@ -0,0 +1,32 @@
#pragma once
#include "core/Object.hpp"
#include "primitives/ClassObject.hpp"
#include "Map.hpp"
namespace obj {
struct MethodObject;
};
namespace obj {
struct ByteCode;
struct CallStack {
struct CallFrame {
enum { CALL_DEPTH = 1024 };
obj::Object* mSelf = nullptr;
obj::MethodObject* mMethod = nullptr;
tp::ualni mIp = 0;
};
void enter(const CallFrame& frame);
void leave();
ByteCode* getBytecode();
[[nodiscard]] tp::halni len() const;
tp::ConstSizeBuffer<CallFrame, CallFrame::CALL_DEPTH> mStack;
};
};