Neko 1.99.11
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
check.h File Reference
#include <stdio.h>
#include <stdlib.h>
Include dependency graph for check.h:

Go to the source code of this file.

Macros

#define METAL_CHECK(err)

Macro Definition Documentation

◆ METAL_CHECK

#define METAL_CHECK ( err)
Value:
do { \
if ((err) != nil) { \
fprintf(stderr, "%s:%d Metal error: %s\n", __FILE__, __LINE__, \
[[err localizedDescription] UTF8String]); \
exit(EXIT_FAILURE); \
} \
} while (0)

Check a Metal/NSError status and abort on failure

Definition at line 44 of file check.h.