so3  1.3.0
Fast and exact Wigner transforms
Macros
so3_error.h File Reference
#include <stdio.h>
Include dependency graph for so3_error.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SO3_ERROR_GENERIC(comment)
 
#define SO3_ERROR_MEM_ALLOC_CHECK(pointer)
 

Detailed Description

Error macros used in SO3 package.

Author
Martin Büttner
Jason McEwen

Macro Definition Documentation

◆ SO3_ERROR_GENERIC

#define SO3_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); \
}

◆ SO3_ERROR_MEM_ALLOC_CHECK

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