Serene Runtime 1.0.0-dev
C runtime for the Serene programming language
Loading...
Searching...
No Matches
context_tests.h File Reference
#include "base.h"
#include "serene/rt/core.h"
#include "serene/rt/namespaces.h"
#include "serene/rt/strings.h"
Include dependency graph for context_tests.h:

Go to the source code of this file.

Macros

#define CTX_TESTS(X)

Functions

static void test_context_make ()

Macro Definition Documentation

◆ CTX_TESTS

#define CTX_TESTS ( X)
Value:
X("context::make", test_context_make)
static void test_context_make()

Definition at line 26 of file context_tests.h.

Function Documentation

◆ test_context_make()

void test_context_make ( )
static

Definition at line 28 of file context_tests.h.

28 {
29 MAKE_ENGINE(mm, engine);
30 MAKE_CONTEXT(engine, ctx);
31 ASSERT_NOT_NULL(ctx);
32 ASSERT_NOT_NULL(ctx->engine);
33 TEST_CHECK(ctx->parent == nullptr);
34 RELEASE_CONTEXT(ctx);
35 SHUTDOWN_ENGINE(mm, engine);
36}
#define TEST_CHECK(cond)
Definition acutest.h:95
#define RELEASE_CONTEXT(x)
Definition base.h:48
#define ASSERT_NOT_NULL(x)
Definition base.h:30
#define SHUTDOWN_ENGINE(mm, engine)
Definition base.h:40
#define MAKE_ENGINE(mm, engine)
Definition base.h:34
#define MAKE_CONTEXT(engine, x)
Definition base.h:44