Macros
serial_port.cpp File Reference
#include <errno.h>
#include <fcntl.h>
#include <math.h>
#include <poll.h>
#include <signal.h>
#include <stdio.h>
#include <string.h>
#include <termios.h>
#include <unistd.h>
#include <fstream>
#include <iostream>
#include <stdexcept>
#include <string>
#include "kvh/serial_port.h"
Include dependency graph for serial_port.cpp:

Go to the source code of this file.

Macros

#define SERIAL_EXCEPT(except, msg, ...)
 Macro for throwing an exception with a message, passing args. More...
 

Macro Definition Documentation

#define SERIAL_EXCEPT (   except,
  msg,
  ... 
)
Value:
{ \
char buf[1000]; \
snprintf(buf, sizeof(buf), msg " (in SerialPort::%s)", ##__VA_ARGS__, __FUNCTION__); \
throw except(buf); \
}

Macro for throwing an exception with a message, passing args.

Definition at line 55 of file serial_port.cpp.



kvh_drivers
Author(s): Jeff Schmidt, Geoffrey Viola
autogenerated on Mon Jun 10 2019 13:45:24