c-compat 0.1.0-alpha.1

Allows to easily compile and integrate C libraries in Rust in a cross-platform way
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef _ASSERT_H
#define _ASSERT_H

#include <common.h>

#define static_assert(expr, str) _Static_assert(expr, str)

static inline void assert(bool expr) {
    if(!expr) {
        __builtin_trap();
    }
}

#endif