MCPcopy Create free account
hub / github.com/WebAssembly/wasm-c-api / assertions

Function assertions

include/wasm.h:29–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27// Machine types
28
29inline void assertions(void) {
30 static_assert(sizeof(float) == sizeof(uint32_t), "incompatible float type");
31 static_assert(sizeof(double) == sizeof(uint64_t), "incompatible double type");
32 static_assert(sizeof(intptr_t) == sizeof(uint32_t) ||
33 sizeof(intptr_t) == sizeof(uint64_t),
34 "incompatible pointer type");
35}
36
37typedef char byte_t;
38typedef float float32_t;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected