diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-09-21 13:59:39 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-25 14:36:46 +0200 |
commit | c811a743a1528db1d05970e1aa14162ef7c70b75 (patch) | |
tree | 4560ab5d9084c385946415e9fc2dbf187e26c844 /include/bytecode | |
parent | 142a13ad3f77c0ad1bd321d1a1f864a5117896d1 (diff) |
Implement vararg, verify arguments to parameters
Diffstat (limited to 'include/bytecode')
-rw-r--r-- | include/bytecode/bytecode.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/bytecode/bytecode.h b/include/bytecode/bytecode.h index 8f786a2..23bc4cf 100644 --- a/include/bytecode/bytecode.h +++ b/include/bytecode/bytecode.h @@ -77,7 +77,8 @@ typedef enum { typedef enum { FUNC_FLAG_NONE = 0, - FUNC_FLAG_EXPORTED = 1 << 0 + FUNC_FLAG_EXPORTED = 1 << 0, + FUNC_FLAG_VARARGS = 1 << 1 } amal_func_flag; typedef u8 AmalOpcodeType; @@ -110,10 +111,13 @@ typedef struct { #pragma pack(push, 1) typedef struct { u8 num_params; + u8 num_return_types; + u8 name_len; + u8 flags; + u32 params_num_pointers; u32 params_fixed_size; - u8 num_return_types; u32 return_types_num_pointers; u32 return_types_fixed_size; } BytecodeHeaderExternFunction; |