s2let  2.2.0
Fast wavelets on the sphere
Macros
s2let_error.h File Reference
#include <stdio.h>
#include <ssht/ssht.h>
Include dependency graph for s2let_error.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define S2LET_ERROR_GENERIC(comment)
 
#define S2LET_ERROR_MEM_ALLOC_CHECK(pointer)
 

Macro Definition Documentation

◆ S2LET_ERROR_GENERIC

#define S2LET_ERROR_GENERIC (   comment)
Value:
{ \
printf("ERROR: %s.\n", comment); \
printf("ERROR: %s <%s> %s %s %s %d.\n", \
"Occurred in function", \
__PRETTY_FUNCTION__, \
"of file", __FILE__, \
"on line", __LINE__); \
exit(1); \
}

◆ S2LET_ERROR_MEM_ALLOC_CHECK

#define S2LET_ERROR_MEM_ALLOC_CHECK (   pointer)
Value:
if(pointer == NULL) { \
S2LET_ERROR_GENERIC("Memory allocation failed") \
}