star-gas

Load and structure gas data
git clone git://git.meso-star.fr/star-gas.git
Log | Files | Refs | README | LICENSE

commit 281ea9fe03e59f9b76e59b7c5e868b5420c62fd4
parent f2099565ac9b8ec69ab95a400a05cc66ed9119d7
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Mon,  2 Mar 2026 15:31:18 +0100

Add the SGAS helper macro

Diffstat:
Msrc/sgas.h | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/sgas.h b/src/sgas.h @@ -26,6 +26,15 @@ #define SGAS_API extern IMPORT_SYM #endif +/* Helper macro that asserts if the invocation of the sgas function `Func' + * returns an error. One should use this macro on sgas function calls for which + * no explicit error checking is performed */ +#ifndef NDEBUG + #define SGAS(Func) ASSERT(sgas_##Func == RES_OK) +#else + #define SGAS(Func) sgas_##Func +#endif + /* Forward declarations */ struct logger; struct mem_allocator;