Пример #1
0
Файл: eh42.C Проект: 0day-ci/gcc
int main() {
    try {
      none n = throw_it();
    } catch (int ex) {
      return 0;
    }
}
Пример #2
0
void expr_error_undef (Token t, int w)
{
	if (intfind (undeftree, t)) dothrow (0);
	union ival i;
	intadd (&undeftree, t, i);
	fprintf (errstream, EER"Un%s '%s'\n", w ? "declared function" : "defined object", expand (t));
	throw_it (0);
}
Пример #3
0
CEXCEPT_EXPORT void
cexcept_throw_error (int error, const char *fmt, ...)
{
  va_list args;

  va_start (args, fmt);
  throw_it (RETURN_ERROR, error, fmt, args);
  va_end (args);
}
Пример #4
0
void
throw_error (enum errors error, const char *fmt, ...)
{
  va_list args;

  va_start (args, fmt);
  throw_it (RETURN_ERROR, error, fmt, args);
  va_end (args);
}
Пример #5
0
void expr_warntt (char *description, Token t1, Token t2)
{
	fprintf (errstream, WARN"%s `%s' `%s'\n", description, expand (t1), expand (t2));
	throw_it (1);
}
Пример #6
0
void expr_warn (char *description)
{
	fprintf (errstream, WARN"%s\n", description);
	throw_it (1);
}
Пример #7
0
void expr_errortt (char *description, Token t1, Token t2)
{
	fprintf (errstream, EER"%s `%s' `%s'\n", description, expand (t1), expand (t2));
	throw_it (0);
}
Пример #8
0
void expr_error (char *description)
{
	fprintf (errstream, EER"%s\n", description);
	throw_it (0);
}
Пример #9
0
void
throw_vquit (const char *fmt, va_list ap)
{
  throw_it (RETURN_QUIT, GDB_NO_ERROR, fmt, ap);
}
Пример #10
0
void
throw_verror (enum errors error, const char *fmt, va_list ap)
{
  throw_it (RETURN_ERROR, error, fmt, ap);
}
Пример #11
0
CEXCEPT_EXPORT void
cexcept_throw_vfatal (const char *fmt, va_list ap)
{
  throw_it (RETURN_QUIT, CEXCEPT_NO_ERROR, fmt, ap);
}
Пример #12
0
CEXCEPT_EXPORT void
cexcept_throw_verror (int error, const char *fmt, va_list ap)
{
  throw_it (RETURN_ERROR, error, fmt, ap);
}