gap-sys 0.2.4

Rust bindings to GAP - Groups, Algorithms, Programming - a System for Computational Discrete Algebra
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// We must define EXPORT_INLINE as static inline for bindgen to work with libgap
#define EXPORT_INLINE static inline

// Include all of GAP's headers
#include <gap/libgap-api.h>
#include <gap/gap_all.h>

// Wrapper around macros
static inline int SYSGAP_Enter() {
    return GAP_Enter();
}

static inline void SYSGAP_Leave() {
    GAP_Leave();
}