Add special exception type for the null deref exceptions.
This commit is contained in:
parent
6b560aadba
commit
7e7951185b
17
include/cling/Interpreter/RuntimeExceptions.h
Normal file
17
include/cling/Interpreter/RuntimeExceptions.h
Normal 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
|
@ -25,6 +25,8 @@
|
||||
struct __float128;
|
||||
#endif
|
||||
|
||||
#include "cling/Interpreter/RuntimeExceptions.h"
|
||||
|
||||
namespace cling {
|
||||
|
||||
class Interpreter;
|
||||
|
Loading…
x
Reference in New Issue
Block a user