|
slot 0.0.1
A real time UI render framework
|


宏定义 | |
| #define | SLANG_HANDLE_RESULT_FAIL(x) |
| #define | SLANG_RETURN_ON_FAIL(x) |
| #define | SLANG_RETURN_VOID_ON_FAIL(x) |
| #define | SLANG_RETURN_FALSE_ON_FAIL(x) |
| Helper macro that will return false on failure. | |
| #define | SLANG_RETURN_NULL_ON_FAIL(x) |
| Helper macro that will return nullptr on failure. | |
| #define | SLANG_ASSERT_ON_FAIL(x) |
| #define | SLANG_ASSERT_VOID_ON_FAIL(x) |
| Helper macro that will assert if the result from a call is a failure, also returns. | |
| #define SLANG_ASSERT_ON_FAIL | ( | x | ) |
Helper macro that will assert if the return code from a call is failure, also returns the failure.
| #define SLANG_ASSERT_VOID_ON_FAIL | ( | x | ) |
Helper macro that will assert if the result from a call is a failure, also returns.
| #define SLANG_HANDLE_RESULT_FAIL | ( | x | ) |
Set SLANG_HANDLE_RESULT_FAIL(x) to code to be executed whenever an error occurs, and is detected by one of the macros
| #define SLANG_RETURN_FALSE_ON_FAIL | ( | x | ) |
Helper macro that will return false on failure.
| #define SLANG_RETURN_NULL_ON_FAIL | ( | x | ) |
Helper macro that will return nullptr on failure.
| #define SLANG_RETURN_ON_FAIL | ( | x | ) |
Helper macro, that makes it easy to add result checking to calls in functions/methods that themselves return Result.
| #define SLANG_RETURN_VOID_ON_FAIL | ( | x | ) |
Helper macro that can be used to test the return value from a call, and will return in a void method/function