#pragma once

#define pi (3.14159265358979323846)

#define abort_on_error(where, error) ({ \
    typeof(where) _where = where; \
    typeof(error) _error = error; \
    \
    if(_error) { \
        fprintf( \
            stderr, \
            __FILE__ ":%d: %s error (%#x).\n", \
            __LINE__, \
            _where, \
            _error \
        ); \
    } \
})

#pragma once
#include <stdlib.h>

#define pi (3.14159265358979323846)

#define abort_on_error(where, error) ({ \
    typeof(where) _where = where; \
    typeof(error) _error = error; \
    \
    if(_error) { \
        fprintf( \
            stderr, \
            __FILE__ ":%d: %s error (%#x).\n", \
            __LINE__, \
            _where, \
            _error \
        ); \
        \
        exit(-1); \
    } \
})

Fix abort_on_error: Don't forget to exit(-1).
Fix abort_on_error: Don't forget to exit(-1).
