Tensor Comprehensions
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
error_report.h File Reference
#include "tc/lang/tree.h"
Include dependency graph for error_report.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  lang::ErrorReport
 

Namespaces

 lang
 

Macros

#define TC_ASSERT(ctx, cond)
 

Functions

void lang::warn (const ErrorReport &err)
 
template<typename T >
const ErrorReport & lang::operator<< (const ErrorReport &e, const T &t)
 

Macro Definition Documentation

#define TC_ASSERT (   ctx,
  cond 
)
Value:
if (!(cond)) { \
throw ::lang::ErrorReport(ctx) \
<< __FILE__ << ":" << __LINE__ << ": assertion failed: " << #cond; \
}