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_hyperbeam to 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 file line_num, which can be passed as __LINE__, and the name of the mwa_hyperbeam function being called function_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_hyperbeam function being called