1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

var-return support for const eval methods

This commit is contained in:
Brian Fiete 2020-12-30 13:24:13 -08:00
parent 585e2575e8
commit 706fe9e04b
15 changed files with 292 additions and 60 deletions

View file

@ -53,6 +53,19 @@ public:
}
};
class BeState
{
public:
BeFunction* mActiveFunction;
Array<BeDbgLoc*> mSavedDebugLocs;
bool mHasDebugLoc;
BeBlock* mActiveBlock;
int mInsertPos;
BeDbgLoc* mCurDbgLoc;
BeDbgLoc* mPrevDbgLocInline;
BeDbgLoc* mLastDbgLoc;
};
template <typename T>
class CmdParamVec : public SizedArray<T, 8>
@ -139,6 +152,9 @@ public:
BeMDNode* GetBeMetadata(int streamId);
BeType* GetBeTypeById(int id);
BeState GetState();
void SetState(const BeState& state);
};
NS_BF_END