Hydra: CheckValue.h File Reference (original) (raw)
#include <hydra/detail/Config.h>#include <stdio.h>#include <cmath>#include <utility>#include <math.h>
Go to the source code of this file.
| Namespaces |
|---|
| Macros | |
|---|---|
| #define | ANSI_COLOR_BLUE "\x1b[34m" |
| #define | ANSI_COLOR_CYAN "\x1b[36m" |
| #define | ANSI_COLOR_GREEN "\x1b[32m" |
| #define | ANSI_COLOR_MAGENTA "\x1b[35m" |
| #define | ANSI_COLOR_RED "\x1b[31m" |
| #define | ANSI_COLOR_RESET "\x1b[0m" |
| #define | ANSI_COLOR_YELLOW "\x1b[33m" |
| #define | CHECK_VALUE(x, fmt, ...) detail::CheckValue(x, fmt, __FILE__ ,__PRETTY_FUNCTION__ , __LINE__ , __VA_ARGS__) |
| Functions | |
|---|---|
| template<typename T , typename ... Ts> | |
| __hydra_host__ __hydra_device__ T | hydra::detail::CheckValue (T &&x, char const *fmt, char const *file, char const *function, unsigned int line, Ts &&...par) |
| template<typename T , typename ... Ts> | |
| __hydra_host__ __hydra_device__ T | hydra::detail::kill (T &&x) |
◆ ANSI_COLOR_BLUE
#define ANSI_COLOR_BLUE "\x1b[34m"
◆ ANSI_COLOR_CYAN
#define ANSI_COLOR_CYAN "\x1b[36m"
◆ ANSI_COLOR_GREEN
#define ANSI_COLOR_GREEN "\x1b[32m"
◆ ANSI_COLOR_MAGENTA
#define ANSI_COLOR_MAGENTA "\x1b[35m"
◆ ANSI_COLOR_RED
#define ANSI_COLOR_RED "\x1b[31m"
◆ ANSI_COLOR_RESET
#define ANSI_COLOR_RESET "\x1b[0m"
◆ ANSI_COLOR_YELLOW
#define ANSI_COLOR_YELLOW "\x1b[33m"
◆ CHECK_VALUE
| #define CHECK_VALUE | ( | | x, | | -------------------- | ---------------------------------------------------------------------------------------------------- | | -- | | | fmt, | | | | | | ... | | | | | ) | detail::CheckValue(x, fmt, __FILE__ ,__PRETTY_FUNCTION__ , __LINE__ , __VA_ARGS__) | | |