Small cleanup

Fortune for rngxx's current commit: Middle blessing − 中吉
capi
Avril 3 years ago
parent c38d58b7fe
commit af095e2a41
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -1,3 +1,4 @@
// C api for rngxx
#ifndef _RNGXX_H #ifndef _RNGXX_H
#define _RNGXX_H #define _RNGXX_H
@ -16,15 +17,19 @@
extern "C" { extern "C" {
#endif #endif
// -- C API types -- (C++ compat)
typedef struct Random rng_t; typedef struct Random rng_t;
enum rng_kind { enum rng_kind {
RNG_KIND_CRAND, RNG_KIND_CRAND,
}; };
// -- // --
#ifndef _RNGXX_IMPL_ONLY_TYPES #ifndef _RNGXX_IMPL_ONLY_TYPES
// -- C API functions -- (C++ NO compat)
rng_t* rng_new(enum rng_kind kind, u64 seed[static restrict 1]); rng_t* rng_new(enum rng_kind kind, u64 seed[static restrict 1]);
// -- // --
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
} }

Loading…
Cancel
Save