JeVois  1.20
JeVois Smart Embedded Machine Vision Toolkit
Share this page:
Serial.C File Reference
#include <jevois/Core/Serial.H>
#include <jevois/Core/Engine.H>
#include <fstream>
#include <fcntl.h>
#include <stdio.h>
#include <sys/stat.h>
#include <sys/types.h>
Include dependency graph for Serial.C:

Go to the source code of this file.

Macros

#define SERFATAL(msg)
 
#define SERTHROW(msg)
 

Macro Definition Documentation

◆ SERFATAL

#define SERFATAL (   msg)
Value:
do { \
if (itsErrno.load() == 0) itsErrno = errno; \
LFATAL('[' << instanceName() << "] " << msg << " (" << strerror(errno) << ')'); \
} while (0)

Definition at line 29 of file Serial.C.

◆ SERTHROW

#define SERTHROW (   msg)
Value:
do { \
if (itsErrno.load() == 0) itsErrno = errno; \
std::ostringstream ostr; \
ostr << '[' << instanceName() << "] " << msg << " (" << strerror(errno) << ')'; \
throw std::runtime_error(ostr.str()); \
} while (0)

Definition at line 34 of file Serial.C.

LFATAL
#define LFATAL(msg)
Convenience macro for users to print out console or syslog messages, FATAL level.