skip to content
==> tests/constants.c <==
1/* Every constant of @ajax/mesh-abi-ops 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/ops.h"
4#include "mesh/check.h"
5
6#include <stdint.h>
7#include <string.h>
8
9int main(void) {
10    CHECK_U(MESH_OP_TASK, UINT64_C(0));
11    CHECK_U(MESH_OP_INIT, UINT64_C(1));
12    CHECK_U(MESH_OP_REQ, UINT64_C(2));
13    CHECK_U(MESH_OP_FOLLOW, UINT64_C(255));
14    CHECK_U(MESH_OP_JOB, UINT64_C(254));
15    CHECK_U(MESH_R_JOB_FAIL, UINT64_C(4294967295));
16    CHECK_U(MESH_R_NONE, UINT64_C(0));
17    CHECK_U(MESH_R_BAD_OP, UINT64_C(4294967295));
18    return mesh_check_done();
19}