diff options
| author | Frank LENORMAND <lenormf@gmail.com> | 2017-02-19 17:37:32 +0300 |
|---|---|---|
| committer | Frank LENORMAND <lenormf@gmail.com> | 2017-02-22 13:04:25 +0300 |
| commit | 98cfbc7c3c6a533f3202cdee10019774daaa0b07 (patch) | |
| tree | 5a3ef08dea5ca6497660cce1e04099b9581bf74b /src/shared_string.cc | |
| parent | fb57734820f2f63c18bad095201d601fdcaab31c (diff) | |
Properly wrap `kak_assert` into a do-while scope
Expanding the `kak_assert` macro to either an `if` statement or nothing
leads to issues when the macro is used in a conditional statement that
doesn't use braces.
Example: ncurses_ui.cc:476, in non debug mode, the macro will expand to
an empty line, resulting in the `ungetch` call not being executed if the
`ioctl` call succeeds (line 448).
Diffstat (limited to 'src/shared_string.cc')
0 files changed, 0 insertions, 0 deletions
