mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-05 01:20:20 +00:00
wasm_module: create const ValueType::VOID to use as block type
This commit is contained in:
parent
b69be0e12d
commit
d9fe907684
2 changed files with 5 additions and 3 deletions
|
@ -637,6 +637,10 @@ pub enum ValueType {
|
|||
F64 = 0x7c,
|
||||
}
|
||||
|
||||
impl ValueType {
|
||||
pub const VOID: u8 = 0x40;
|
||||
}
|
||||
|
||||
impl Serialize for ValueType {
|
||||
fn serialize<T: SerialBuffer>(&self, buffer: &mut T) {
|
||||
buffer.append_u8(*self as u8);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue