A library for talking to Multi-Tech's Cellular SocketModem Devices.
Dependents: M2X_dev axeda_wrapper_dev MTS_M2x_Example1 MTS_Cellular_Connect_Example ... more
Diff: utils/Vars.h
- Revision:
- 32:629e6b1c8e22
- Parent:
- 1:f641337952a9
- Child:
- 39:6e94520a3217
--- a/utils/Vars.h Tue Dec 17 23:58:50 2013 +0000 +++ b/utils/Vars.h Wed Dec 18 22:45:53 2013 +0000 @@ -3,6 +3,15 @@ #include <string> +#ifndef MAX +#define MAX(a,b) ({ __typeof__ (a) _a = (a); __typeof__ (b) _b = (b); _a > _b ? _a : _b; }) +#endif + +#ifndef MIN +#define MIN(a,b) ({ __typeof__ (a) _a = (a); __typeof__ (b) _b = (b); _a < _b ? _a : _b; }) +#endif + + // An array of strings for printing the names of the Radio enum. const string RadioNames[] = {"NA", "E1", "G2", "EV2", "H4", "EV3", "H5"};