|
MHAA Interrupt Control Core v1.0.0
Interrupt gate control and scoped restoration
|
The simulated gate starts enabled. Constructing the guard disables it for the block, and leaving the block restores the enabled state. The behavior program adds nested guards and a gate that was already disabled. It also checks that a base-only Controller cannot construct the guard.
The program uses the local fake to demonstrate injection. A concrete Adapter implementing the same Contract can be supplied to the same facade.
Build from this repository root. Set contract_include to the matching Contract's include/ directory. The value below applies to the MHAA development workspace. Both programs exit with status 0 on success and print no output. On Windows execute example.exe and behavior.exe.
See the behavior test for the additional cases described above.