From af095e2a41095b53ce6593e7b423976a3e54d400 Mon Sep 17 00:00:00 2001 From: Avril Date: Wed, 3 Nov 2021 05:49:08 +0000 Subject: [PATCH] Small cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fortune for rngxx's current commit: Middle blessing − 中吉 --- include/rngxx.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/rngxx.h b/include/rngxx.h index 9037f0a..dbff170 100644 --- a/include/rngxx.h +++ b/include/rngxx.h @@ -1,3 +1,4 @@ +// C api for rngxx #ifndef _RNGXX_H #define _RNGXX_H @@ -16,15 +17,19 @@ extern "C" { #endif +// -- C API types -- (C++ compat) typedef struct Random rng_t; enum rng_kind { RNG_KIND_CRAND, }; +// -- // -- #ifndef _RNGXX_IMPL_ONLY_TYPES +// -- C API functions -- (C++ NO compat) rng_t* rng_new(enum rng_kind kind, u64 seed[static restrict 1]); +// -- // -- #endif #ifdef __cplusplus }