mosek_guarded.h 413 B

123456789101112131415161718192021
  1. #ifndef IGL_MOSEK_GUARDED_H
  2. #define IGL_MOSEK_GUARDED_H
  3. #include "../igl_inline.h"
  4. #include "mosek.h"
  5. namespace igl
  6. {
  7. // Little function to wrap around mosek call to handle errors
  8. //
  9. // Inputs:
  10. // r mosek error code returned from mosek call
  11. // Returns r untouched
  12. IGL_INLINE MSKrescodee mosek_guarded(const MSKrescodee r);
  13. }
  14. #ifdef IGL_HEADER_ONLY
  15. # include "mosek_guarded.cpp"
  16. #endif
  17. #endif