remove macros use in objects mofule

This commit is contained in:
IlyaShurupov 2024-03-24 21:55:25 +03:00
parent 0fb9326c08
commit 7927226484
31 changed files with 362 additions and 386 deletions

View file

@ -10,12 +10,9 @@ namespace tp::obj {
class OperandStack {
enum : alni {
MAX_STACK_SIZE = 512
};
enum : alni { MAX_STACK_SIZE = 512 };
public:
Operand* mBuff;
ualni mIdx;
@ -28,7 +25,7 @@ namespace tp::obj {
template <typename ObjectType>
ObjectType* getOperand() {
auto operand = getOperand();
auto ret = NDO_CAST(ObjectType, operand);
auto ret = objects_api::cast<ObjectType>(operand);
ASSERT(ret && "Operand Has Invalid Object Type");
return ret;
}