You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit
1. Removes the diagnostic_data argument from the assert subroutine
2. Removes the types that existed solely to support that argument:
a. characterizable_t
b. intrinsic_array_t
3. Edits or deletes examples that referenced the removed entities
4. Edits or deletes documentation that referenced removed entities
Copy file name to clipboardExpand all lines: README.md
+15-20Lines changed: 15 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,6 @@ This assertion utility contains four public entities:
19
19
20
20
The `assert` subroutine
21
21
* Error-terminates with a variable stop code when a caller-provided logical assertion fails,
22
-
* Includes user-supplied diagnostic data in the output if provided by the calling procedure,
23
22
* Is callable inside `pure` procedures, and
24
23
* Can be eliminated at compile-time, as controlled by the `ASSERTIONS` preprocessor define.
25
24
@@ -42,10 +41,6 @@ If instead `fpm install` is used, then either the user must copy `include/assert
42
41
the user must invoke `assert` directly (via `call assert(...)`).
43
42
In the latter approach when the assertions are disabled, the `assert` procedure will start and end with `if (.false.) then ... end if`, which might facilitate automatic removal of `assert` during the dead-code removal phase of optimizing compilers.
44
43
45
-
The `characterizable_t` type defines an `as_character()` deferred binding that produces `character` strings for use as diagnostic output from a user-defined derived type that extends `characterizable_t` and implements the deferred binding.
46
-
47
-
The `intrinsic_array_t` type that extends `characterizable_t` provides a convenient mechanism for producing diagnostic output from arrays of intrinsic type `complex`, `integer`, `logical`, or `real`.
48
-
49
44
Use Cases
50
45
---------
51
46
Two common use cases include
@@ -208,19 +203,19 @@ character for line-breaks in a macro invocation:
0 commit comments