MCPcopy Create free account
hub / github.com/Bareflank/hypervisor / platform_expects

Function platform_expects

loader/linux/src/platform.c:51–55  ·  view source on GitHub ↗

* <!-- description --> * @brief If test is false, a contract violation has occurred. This * should be used to assert preconditions that if not meet, would * result in undefined behavior. These should not be tested by a * unit test, meaning they are contract violations. These asserts * are simply there as a sanity check during a debug build. * * <!-- inputs/outputs --> *

Source from the content-addressed store, hash-verified

49 * @param test the contract to check
50 */
51void
52platform_expects(int const test) NOEXCEPT
53{
54 BUG_ON(!test);
55}
56
57/**
58 * <!-- description -->

Callers 4

platform_memsetFunction · 0.70
platform_memcpyFunction · 0.70
platform_copy_from_userFunction · 0.70
platform_copy_to_userFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected