initcommit osclsk prototype

This commit is contained in:
Ellen Arvidsson 2025-06-13 12:51:54 +02:00
commit 4ade3a5f00
19 changed files with 1780 additions and 0 deletions

41
daisy/scope/audioc.hpp Normal file
View file

@ -0,0 +1,41 @@
#ifndef _AUDIOC_HPP
#define _AUDIOC_HPP
#define AUDIOC_DEBUG
#ifdef AUDIOC_DEBUG
#define AUDIOC_PRECOND(cond) \
do { \
if (! (cond)) { \
AUDIOC_LOG("AC_PRECOND(" #cond ") @ %s: line %u failed\n", \
__FILE__, __LINE__); \
} \
} while (0)
#define AUDIOC_POSTCOND(cond) \
do { \
if (! (cond)) { \
AUDIOC_LOG("AC_POSTCOND(" #cond ") @ %s: line %u failed\n", \
__FILE__, __LINE__); \
} \
} while (0)
#define AUDIOC_ASSERT(cond) \
do { \
if (! (cond)) { \
AUDIOC_LOG("AC_ASSERT(" #cond ") @ %s: line %u failed\n", \
__FILE__, __LINE__); \
} \
} while (0)
#else
#define AUDIOC_ASSERT(cond)
#endif /* ifdef AUDIOC_DEBUG */
#define AC_ASSERT AUDIOC_ASSERT
#define AC_PRECOND AUDIOC_PRECOND
#define AC_POSTCOND AUDIOC_POSTCOND
#define AC_LOG AUDIOC_LOG
#endif /* ifndef _AUDIOC_HPP */