[−][src]Macro lrl_test_compiler::check
The check! macro fills the same role as the "?" operator, but for CompilerResults instead of Option or Result. This means that it returns the unwrapped value behind a result, and causes the function to return early with a failed result if it cannot.
This macro is called with two or three parameters. The first parameter is always the CompilerResult for the current function. The second parameter is the CompilerResult, Result, or Option being checked. The third parameter (only used with Result or Option) is the optional message.