TOML の整数キーを integer(i32) として読み込む。
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(toml_table), | intent(inout) | :: | table | |||
| type(toml_key), | intent(in) | :: | key | |||
| integer(kind=i32), | intent(out) | :: | value | |||
| character(len=*), | intent(in) | :: | context |
subroutine get_toml_int(table, key, value, context) type(toml_table), intent(inout) :: table type(toml_key), intent(in) :: key integer(i32), intent(out) :: value character(len=*), intent(in) :: context integer :: stat, tmp call get_value(table, key, tmp, stat=stat) call require_toml_success(stat, context) value = int(tmp, i32) end subroutine get_toml_int