MCPcopy Create free account
hub / github.com/Hamlib/Hamlib / THROW

Function THROW

include/hamlib/rigclass.h:298–319  ·  view source on GitHub ↗

cppcheck-suppress unusedFunction

Source from the content-addressed store, hash-verified

296
297// cppcheck-suppress unusedFunction
298inline void THROW(const RigException *e)
299{
300#if defined(__GNUG__)
301# if ((__GNUG__ <= 2) && (__GNUC_MINOR__ < 8))
302 (*lib_error_handler)(e ? e->classname() : "", e ? e->message : "");
303#else
304 throw *e;
305#endif
306#elif defined(_MSC_VER)
307 throw* e;
308#elif defined(__SUNPRO_CC)
309// cppcheck-suppress cstyleCast
310 genericerror(1, ((e != 0) ? (char *)(e->message) : ""));
311#else
312
313 if (e) {
314 std::cerr << e->message << std::endl;
315 }
316
317 exit(0);
318#endif
319}
320
321#define THROWS(s)
322

Callers 10

RigMethod · 0.85
getLevelMethod · 0.85
getLevelIMethod · 0.85
getLevelFMethod · 0.85
getParmMethod · 0.85
getParmIMethod · 0.85
getParmFMethod · 0.85
getResolutionMethod · 0.85
AmplifierMethod · 0.85
RotatorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected