| 37 | } |
| 38 | |
| 39 | void ErrorCtx_Clear(void) { |
| 40 | ErrorCtx *ctx = ErrorCtx_Get(); |
| 41 | ASSERT(ctx != NULL); |
| 42 | |
| 43 | if(ctx->error != NULL) { |
| 44 | free(ctx->error); |
| 45 | ctx->error = NULL; |
| 46 | } |
| 47 | |
| 48 | if(ctx->breakpoint != NULL) { |
| 49 | rm_free(ctx->breakpoint); |
| 50 | ctx->breakpoint = NULL; |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | //------------------------------------------------------------------------------ |
| 55 | // Error setting and emitting |
no test coverage detected