]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - liboffloadmic/runtime/emulator/coi_host.h
libgomp-plugin-intelmic.cpp (OFFLOAD_ACTIVE_WAIT_ENV): New define.
[thirdparty/gcc.git] / liboffloadmic / runtime / emulator / coi_host.h
index 82260da9db98ad5f94a1620f76e0d5b494bc76b3..38ea274dbe7f02afc6a31e2b47918c2d930b9688 100644 (file)
   return COI_ERROR;                      \
 }
 
+/* Like COIERROR, but return NULL instead of COIRESULT.  */
+#define COIERRORN(...)                   \
+{                                        \
+  fprintf (stderr, "COI ERROR - HOST: "); \
+  fprintf (stderr, __VA_ARGS__);         \
+  fprintf (stderr, "\n");                \
+  perror (NULL);                         \
+  return NULL;                           \
+}
+
 #ifdef DEBUG
   #define COITRACE(...)                            \
   {                                        \