Re: [alsa-lib][PATCH] ctl: use condition statements instead of assert() for new APIs to add an element set

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 20 Jul 2016 11:58:52 +0200,
Takashi Sakamoto wrote:
> 
> Usage of assert() is not better practice of programming as shared library
> APIs. They should return appropriate error code to promote applications to
> handle error state.
> 
> This commit applies condition statements with return value of -EINVAL,
> instead of assert(). As a backward compatibility for existent applications,
> old APIs still call assert().
> 
> Signed-off-by: Takashi Sakamoto <o-takashi@xxxxxxxxxxxxx>

Applied, thanks.


Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux