File Throw.h¶
FileList > Intern > rayx-core > src > Shader > Throw.h
Go to the source code of this file
#include <cassert>#include "Core.h"
Macros¶
| Type | Name |
|---|---|
| define | _assert (condition, string, ...) if (!(condition)) \_throw("assert(" #condition "): " string \_\_VA\_OPT\_\_(, ) \_\_VA\_ARGS\_\_) |
| define | _debug_assert (condition, string, ...) /* multi line expression */ |
| define | _debug_throw (string, ...) /* multi line expression */ |
| define | _debug_warn (condition, string, ...) /* multi line expression */ |
| define | _throw (string, ...) /* multi line expression */ |
| define | _warn (condition, string, ...) if (!(condition)) printf("Warning occurred while executing kernel: " string "\n" \_\_VA\_OPT\_\_(, ) \_\_VA\_ARGS\_\_) |
Macro Definition Documentation¶
define _assert¶
#define _assert (
condition,
string,
...
) `if (!(condition)) _throw("assert(" #condition "): " string __VA_OPT__(, ) __VA_ARGS__)`
define _debug_assert¶
define _debug_throw¶
define _debug_warn¶
define _throw¶
define _warn¶
#define _warn (
condition,
string,
...
) `if (!(condition)) printf("Warning occurred while executing kernel: " string "\n" __VA_OPT__(, ) __VA_ARGS__)`
The documentation for this class was generated from the following file Intern/rayx-core/src/Shader/Throw.h