Skip to content

Commit 0519b45

Browse files
authored
Update 2024-03-21-setjmp-plus-longjmp-equals-goto-but-awesome.md
1 parent 741cbb4 commit 0519b45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_posts/2024-03-21-setjmp-plus-longjmp-equals-goto-but-awesome.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ bool foo(int *result) {
7777
}
7878
```
7979

80-
Adding this attribute to every function, and requiring the output of any function to go through an output parameter, is quite ugly though.
80+
Adding this attribute to every function, and requiring the output of any function to go through a result parameter, is quite ugly though.
8181

82-
It's possible to have the result be returned, and the bool be filled through an output parameter, but then `__attribute__((warn_unused_result))` can't verify if the function's status is used.
82+
It's possible to swap the bool and the result, by having the result be returned, and the bool be filled through a parameter, but then `__attribute__((warn_unused_result))` isn't verifying that the function's status is used.
8383

8484
# goto?
8585

0 commit comments

Comments
 (0)