JeVois  1.22
JeVois Smart Embedded Machine Vision Toolkit
Share this page:
Loading...
Searching...
No Matches
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)
#define LFATAL(msg)
Convenience macro for users to print out console or syslog messages, FATAL level.
Definition Log.H:230

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.