mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 02:44:47 +01:00
Add getLastValueType()
This commit is contained in:
parent
9bf768c97b
commit
c8aecea7ab
@ -80,6 +80,15 @@ class ValueStackManger {
|
||||
return elements[size - deep - 1].codePosition;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the value type of the last value on the stack.
|
||||
*
|
||||
* @return the value type
|
||||
*/
|
||||
ValueType getLastValueType() {
|
||||
return elements[size - 1].valueType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Ensure that there is enough capacity.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user