|
Serene Runtime 1.0.0
C runtime for the Serene programming language
|
#include "serene/rt/context.h"#include "serene/rt/engine.h"#include "serene/rt/impl/hashmap.h"#include "serene/rt/mm/interface.h"#include "serene/utils.h"Go to the source code of this file.
Macros | |
| #define | CTX_LOG(FMT, ...) |
Functions | |
| srn_context_t * | srn_context_make (srn_engine_t *engine) |
| Make an empty context, by allocating a new memory block. | |
| int | srn_context_release (srn_context_t *ctx) |
| void * | srn_allocate (const srn_context_t *ctx, size_t size, size_t alignment) |
| void | srn_release (const srn_context_t *ctx, void *ptr) |
| void * srn_allocate | ( | const srn_context_t * | ctx, |
| size_t | size, | ||
| size_t | alignment ) |
Definition at line 72 of file context.c.
| srn_context_t * srn_context_make | ( | srn_engine_t * | engine | ) |
Make an empty context, by allocating a new memory block.
The returning context is a root context (no parent).
Definition at line 38 of file context.c.
| int srn_context_release | ( | srn_context_t * | ctx | ) |
Definition at line 63 of file context.c.
| void srn_release | ( | const srn_context_t * | ctx, |
| void * | ptr ) |