Skip to content

Commit 83740a0

Browse files
authored
Update ScopeView.hpp
Signed-off-by: Lex Plt <[email protected]>
1 parent b5309d3 commit 83740a0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

include/Ark/VM/ScopeView.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ namespace Ark::internal
5959
*/
6060
bool pushBack(uint16_t id, const Value& val) noexcept;
6161

62+
/**
63+
* @brief Insert one or more pairs at the beginning of the scope
64+
* @details This can ONLY be called on the last known scope, otherwise it will override the data of the next scope!
65+
*
66+
* @param values
67+
*/
68+
void insertFront(const std::vector<pair_t>& values) noexcept;
69+
6270
/**
6371
* @brief Check if the scope maybe holds a specific symbol in memory
6472
*

0 commit comments

Comments
 (0)