hyperbeam_error¶
API documentation for hyperbeam_error.c.
Handle the error messages that come out of hyperbeam version >= 0.5.0
Functions
-
void handle_hyperbeam_error(const char file[], int line_num, const char function_name[])¶
Use functions out of
mwa_hyperbeamto handle errors out of said package.Given the name of the source code
file[], which can be passed via__FILE__, and the line of the fileline_num, which can be passed as__LINE__, and the name of themwa_hyperbeamfunction being calledfunction_name[], make sense of the error that occured and print out something useful, the exit.- Parameters:
file[] – [in] Name of source code file (passed normally via
__FILE__)line_num – [in] Line number of function call inside source code (passed normally via
__LINE__)function_name[] – [in] Name of
mwa_hyperbeamfunction being called