mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-09 10:06:17 -05:00
Remove assert from header files
Putting assert in the public macros isn't good idea at all. Let's get rid of them. Also, clean up snd*_alloca() functions to use a helper macro instead of copy and paste.
This commit is contained in:
parent
9eb272c753
commit
68e5771a6f
11 changed files with 43 additions and 53 deletions
|
|
@ -102,6 +102,9 @@ void *snd_dlsym(void *handle, const char *name, const char *version);
|
|||
int snd_dlclose(void *handle);
|
||||
|
||||
|
||||
/** \brief alloca helper macro. */
|
||||
#define __snd_alloca(ptr,type) do { *ptr = (type##_t *) alloca(type##_sizeof()); memset(*ptr, 0, type##_sizeof()); } while (0)
|
||||
|
||||
/**
|
||||
* \brief Internal structure for an async notification client handler.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue