Infallible extractors, and some fixes to fallibility in return types (Option<T> vs T).
This commit is contained in:
@@ -10,10 +10,10 @@
|
||||
(type u32 (primitive u32))
|
||||
|
||||
(decl Op (Opcode) Inst)
|
||||
(extern extractor Op get_opcode)
|
||||
(extern extractor infallible Op get_opcode)
|
||||
|
||||
(decl InstInput (InstInput u32) Inst)
|
||||
(extern extractor InstInput get_inst_input (out in))
|
||||
(extern extractor infallible InstInput get_inst_input (out in))
|
||||
|
||||
(decl Producer (Inst) InstInput)
|
||||
(extern extractor Producer get_input_producer)
|
||||
|
||||
Reference in New Issue
Block a user