Function die_on_error

Synopsis

#include <examples/utils.h>

void die_on_error(int x, char const *context)

Description

No description yet.

Mentioned in

Source

Lines 57-62 in examples/utils.c. Line 40 in examples/utils.h.

void die_on_error(int x, char const *context) {
  if (x < 0) {
    fprintf(stderr, "%s: %s\n", context, amqp_error_string2(x));
    exit(1);
  }
}





Add Discussion as Guest

Log in to DocsForge