skip to content
==> tests/constants.c <==
1/* Every constant of @ajax/mesh-abi-pipe equals the Rust's (values printed by the Rust itself), and the
2 * Rust const asserts that need a function call hold. Generated from alpha-rust-mesh. */
3#include "mesh/abi/pipe.h"
4#include "mesh/check.h"
5
6#include <stdint.h>
7#include <string.h>
8
9int main(void) {
10    CHECK_I(MESH_PIPE_OK, 1);
11    CHECK_I(MESH_PIPE_NONE, 0);
12    CHECK_I(MESH_PIPE_NOT_CONNECTED, -1);
13    CHECK_I(MESH_PIPE_SIZE, -2);
14    CHECK_I(MESH_PIPE_GONE, -3);
15    return mesh_check_done();
16}