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

Function platform_ensures

loader/linux/src/platform.c:68–72  ·  view source on GitHub ↗

* <!-- description --> * @brief If test is false, a contract violation has occurred. This * should be used to assert postconditions 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

66 * @param test the contract to check
67 */
68void
69platform_ensures(int const test) NOEXCEPT
70{
71 BUG_ON(!test);
72}
73
74/**
75 * <!-- description -->

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected