summaryrefslogtreecommitdiffstats
path: root/DOCS/client_api_examples/shared.h
blob: 027c03f1e9046fc3d36c1545a6042f6ab4a92f06 (plain)
1
2
3
4
5
6
7
8
9
10
#include <stdio.h>
#include <stdlib.h>

static inline void check_error(int status)
{
    if (status < 0) {
        printf("mpv API error: %s\n", mpv_error_string(status));
        exit(1);
    }
}