Advertisement
darash

logging

Aug 12th, 2019
1,505
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <flogging.h>
  2. #if defined MEXING
  3. #define ERRORSTOP(cond, msg) if(cond) then; call mexErrMsgIdAndTxt('MATLAB:qlknn:critical', msg); endif
  4. #elif defined __PGI
  5. #define ERRORSTOP(cond, msg) if(cond) then; log_fatal(*) msg; STOP; endif;
  6. #elif defined __INTEL_COMPILER
  7. #define ERRORSTOP(cond, msg) if(cond) then; log_fatal(*) msg; STOP; endif;
  8. #else
  9. #define ERRORSTOP(cond, msg) if(cond) then; log_fatal(*) msg; ERROR STOP; endif;
  10. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement