示例#1
0
文件: eh42.C 项目: 0day-ci/gcc
int main() {
    try {
      none n = throw_it();
    } catch (int ex) {
      return 0;
    }
}
示例#2
0
文件: misc.c 项目: funny-falcon/lwc
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);
}
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
文件: misc.c 项目: funny-falcon/lwc
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
文件: misc.c 项目: funny-falcon/lwc
void expr_warn (char *description)
{
	fprintf (errstream, WARN"%s\n", description);
	throw_it (1);
}
示例#7
0
文件: misc.c 项目: funny-falcon/lwc
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
文件: misc.c 项目: funny-falcon/lwc
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);
}