drumstick 2.9.0
C++ MIDI libraries using Qt objects, idioms, and style.
errorcheck.h File Reference

Error checking functions and macros. More...

#include <alsa/asoundlib.h>
#include <QString>
#include <QDebug>
#include <drumstick/sequencererror.h>
Include dependency graph for errorcheck.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  drumstick
 Drumstick common.
 
namespace  drumstick::ALSA
 Drumstick ALSA library wrapper.
 

Macros

#define DRUMSTICK_ALSA_CHECK_ERROR(x)   (checkErrorAndThrow((x),__PRETTY_FUNCTION__))
 This macro calls the check error function. More...
 
#define DRUMSTICK_ALSA_CHECK_WARNING(x)   (checkWarning((x),__PRETTY_FUNCTION__))
 This macro calls the check warning function. More...
 

Functions

int checkErrorAndThrow (int rc, const char *where)
 Checks the error code for severe errors. More...
 
int checkWarning (int rc, const char *where)
 Check the error code for warning errors. More...
 

Detailed Description

Error checking functions and macros.

Definition in file errorcheck.h.