History

avutil/avassert: Add av_unreachable() and av_assume() macros

Useful to let the compiler and static analyzers know that something is unreachable without adding an av_assert (which would be either dead for the compiler or add runtime overhead) for this. The implementation used here enforces the use of a message to provide a reason why a particular code is supposed to be unreachable.

Andreas Rheinhardt committed 5 years ago

Commit 004cc601 parent b6f84cd3 files · +46 −1Browse files

Showing the changes to doc/APIchanges (1 of 3 files). Show all

Unified · Split

doc/APIchanges+3−0
@@ -2,6 +2,9 @@ The last version increases of all libraries were on 2025-03-28 · 1 unmodified line
22
33 API changes, most recent first:
44
5+2025-05-21 - xxxxxxxxxx - lavu 60.3.100 - avassert.h
6+ Add av_unreachable() and av_assume() macros.
7+
58 2025-02-xx - xxxxxxxxxx - lavfi 10.10.100 - avfilter.h
69 Add avfilter_link_get_hw_frames_ctx().
710

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t