Commit baf33809 by Marcus Winter

examples: changed MTAPI_CHECK_STATUS to use exit

parent 91afcb9c
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h>
#include <embb/base/c/log.h> #include <embb/base/c/log.h>
#define MTAPI_CHECK_STATUS(status) \ #define MTAPI_CHECK_STATUS(status) \
if (MTAPI_SUCCESS != status) { \ if (MTAPI_SUCCESS != status) { \
embb_log_error("MTAPI C Example", "...error %d\n\n", status); \ printf("...error %d\n\n", status); \
abort(); \ exit(status); \
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment