Add special exception type for the null deref exceptions.

This commit is contained in:
Vassil Vassilev 2013-09-05 16:32:02 +02:00 committed by sftnight
parent 6b560aadba
commit 7e7951185b
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,17 @@
//--------------------------------------------------------------------*- C++ -*-
// CLING - the C++ LLVM-based InterpreterG :)
// version: $Id$
// author: Vassil Vassilev <vasil.georgiev.vasilev@cern.ch>
//------------------------------------------------------------------------------
#ifndef CLING_RUNTIME_EXCEPTIONS_H
#define CLING_RUNTIME_EXCEPTIONS_H
namespace cling {
namespace runtime {
///\brief Exception that is thrown when a null pointer dereference is found
/// or a method taking non-null arguments is called with NULL argument.
///
class cling_null_deref_exception { };
} // end namespace runtime
} // end namespace cling
#endif // CLING_RUNTIME_EXCEPTIONS_H

View File

@ -25,6 +25,8 @@
struct __float128;
#endif
#include "cling/Interpreter/RuntimeExceptions.h"
namespace cling {
class Interpreter;