subroutinefailprivate
subroutine fail(c, message)
Record the first problem.
Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
| c | type(fypp_t) | inout | the state | |
| message | character(len=*) | in | what went wrong |
Called by
- arithmetic
- assign_targets
- bind_targets
- call_builtin
- call_directive
- call_macro
- call_method
- close_block
- compare_two
- compile
- control_directive
- def_directive
- evaluate
- evaluate_call
- evaluate_slice
- expect
- for_directive
- format_string
- handle_directive
- include_directive
- items_of
- make_range
- make_zip
- open_block
- open_scope
- parse_comprehension
- parse_file
- parse_fstring
- parse_primary
- read_string
- read_targets
- render_call
- render_loop
- render_node
- set_directive
- subscript
Source
Show the code
subroutine fail(c, message)
type(fypp_t), intent(inout) :: c !! the state
character(len=*), intent(in) :: message !! what went wrong
if (.not. allocated(c%error)) c%error = message
end subroutine fail