Cytnx v0.9.7
Loading...
Searching...
No Matches
Macros
cytnx_error.hpp File Reference
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <stdarg.h>
#include <iostream>
#include <stdexcept>
Include dependency graph for cytnx_error.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define cytnx_error_msg(is_true, format, ...)
 
#define cytnx_warning_msg(is_true, format, ...)
 

Macro Definition Documentation

◆ cytnx_error_msg

#define cytnx_error_msg (   is_true,
  format,
  ... 
)
Value:
{ \
if (is_true) \
error_msg(__PRETTY_FUNCTION__, __FILE__, __LINE__, (is_true), (format), __VA_ARGS__); \
}

◆ cytnx_warning_msg

#define cytnx_warning_msg (   is_true,
  format,
  ... 
)
Value:
{ \
if (is_true) \
warning_msg(__PRETTY_FUNCTION__, __FILE__, __LINE__, (is_true), (format), __VA_ARGS__); \
}