3 ms·
I think you could achieve something like that with a macro. macro tlv_string s begin i32 (get CONSTANT_STRING_TAG_FOO) i32 (len s)
by thosakwe 8y ago
I think you could achieve something like that with a macro.
macro tlv_string s
begin
i32 (get CONSTANT_STRING_TAG_FOO)
i32 (len s)
str s
u8 0
endmacro
By the way, there's no `len` command at this point, so that's something I'll have to add in eventually to get something like TLV to work.