skip to content
==> tests/constants.c <==
1/* Every constant of @ajax/mesh-abi-native 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/native.h"
4#include "mesh/check.h"
5
6#include <stdint.h>
7#include <string.h>
8
9int main(void) {
10    CHECK_U(MESH_NATIVE_ABI, UINT64_C(1));
11    CHECK_S(MESH_NATIVE_ENV_ABI, "MESH_NATIVE_ABI");
12    CHECK_S(MESH_NATIVE_ENV_NAME, "MESH_PROGRAM");
13    CHECK_I(MESH_NATIVE_STATUS_FD, 3);
14    CHECK_I(MESH_NATIVE_MAILBOX_FD, 4);
15    return mesh_check_done();
16}