#include <string>
#include <iostream>
Go to the source code of this file.
Namespaces | |
namespace | green |
Classes | |
class | green::Error |
Defines | |
#define | THROW_ERROR(msg) throw Error(__LINE__, __FILE__, (msg)); |
#define | ERROR_ASSERT(cond, msg) if(!(cond)) throw Error(__LINE__, __FILE__, (msg)); |
#define | CHECK_SHARED(x) ERROR_ASSERT((x).get(), std::string(#x) + " is NULL") |
#define CHECK_SHARED | ( | x | ) | ERROR_ASSERT((x).get(), std::string(#x) + " is NULL") |
A convenient macro for checking if a shared_ptr is valid
#define ERROR_ASSERT | ( | cond, | |||
msg | ) | if(!(cond)) throw Error(__LINE__, __FILE__, (msg)); |
A convenient macro for throwing an Error if (cond) is false
#define THROW_ERROR | ( | msg | ) | throw Error(__LINE__, __FILE__, (msg)); |
A convenient macro for throwing an Error