Fixed #71 (target cell argument is required)

This commit is contained in:
Matthias Koefferlein 2018-02-12 22:46:47 +01:00
parent 5d59b890d3
commit 4f3b205d93
1 changed files with 14 additions and 5 deletions

View File

@ -4694,11 +4694,20 @@ CODE
else
output = @output_layout || @def_layout
output || raise("No output layout specified")
output_cell = @output_cell || @def_cell
output_cell || raise("No output cell specified")
if @output_layout
output = @output_layout
if @output_cell
output_cell = @output_cell
elsif @def_cell
output_cell = @output_layout.cell(@def_cell.name) || @output_layout.create_cell(@def_cell.name)
end
output_cell || raise("No output cell specified (see 'target' instruction)")
else
output = @def_layout
output || raise("No output layout specified")
output_cell = @output_cell || @def_cell
output_cell || raise("No output cell specified")
end
info = nil
if args.size == 1