Ruby 4.1.0dev (2026-03-23 revision f8459601271ebbc5e1efb101387da955ed1faabb)
arena.h
Go to the documentation of this file.
1
6#ifndef PRISM_ARENA_H
7#define PRISM_ARENA_H
8
12
13#include <stddef.h>
14
18typedef struct pm_arena_t pm_arena_t;
19
29
36
37#endif
PRISM_EXPORTED_FUNCTION PRISM_NODISCARD pm_arena_t * pm_arena_new(void)
Returns a newly allocated and initialized arena.
Definition arena.c:88
PRISM_EXPORTED_FUNCTION void pm_arena_free(pm_arena_t *arena) PRISM_NONNULL(1)
Frees both the held memory and the arena itself.
Definition arena.c:114
#define PRISM_EXPORTED_FUNCTION
By default, we compile with -fvisibility=hidden.
Definition exported.h:20
#define PRISM_NODISCARD
Mark the return value of a function as important so that the compiler warns if a caller ignores it.
Definition nodiscard.h:15
#define PRISM_NONNULL(...)
Mark the parameters of a function as non-null.
Definition nonnull.h:13