2014-10-30 21:44:58 +00:00
|
|
|
/*
|
|
|
|
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
|
|
|
|
Released under Apache 2.0 license as described in the file LICENSE.
|
|
|
|
|
|
|
|
Author: Leonardo de Moura
|
|
|
|
*/
|
2014-12-15 19:04:55 +00:00
|
|
|
#include "library/generic_exception.h"
|
2014-10-30 21:44:58 +00:00
|
|
|
#include "frontends/lean/elaborator_exception.h"
|
|
|
|
|
|
|
|
namespace lean {
|
2014-12-15 19:04:55 +00:00
|
|
|
[[ noreturn ]] void throw_elaborator_exception(char const * msg, expr const & m) {
|
|
|
|
throw_generic_exception(msg, m);
|
2014-10-30 21:44:58 +00:00
|
|
|
}
|
|
|
|
|
2014-12-15 19:04:55 +00:00
|
|
|
[[ noreturn ]] void throw_elaborator_exception(sstream const & strm, expr const & m) {
|
|
|
|
throw_generic_exception(strm, m);
|
2014-10-30 21:44:58 +00:00
|
|
|
}
|
|
|
|
|
2014-12-15 19:04:55 +00:00
|
|
|
[[ noreturn ]] void throw_elaborator_exception(char const * msg, expr const & m, pp_fn const & fn) {
|
|
|
|
throw_generic_exception(msg, m, fn);
|
2014-10-30 21:44:58 +00:00
|
|
|
}
|
|
|
|
|
2014-12-15 19:04:55 +00:00
|
|
|
[[ noreturn ]] void throw_elaborator_exception(expr const & m, pp_fn const & fn) {
|
|
|
|
throw_generic_exception(m, fn);
|
2014-10-30 21:44:58 +00:00
|
|
|
}
|
|
|
|
}
|