Exemple #1
0
void errorframe(errorframe_t* frame, source_t* source, size_t line, size_t pos,
  const char* fmt, ...)
{
  pony_assert(frame != NULL);

  va_list ap;
  va_start(ap, fmt);
  errorframev(frame, source, line, pos, fmt, ap);
  va_end(ap);
}
Exemple #2
0
void ast_error_frame(errorframe_t* frame, ast_t* ast, const char* fmt, ...)
{
  assert(frame != NULL);
  assert(ast != NULL);
  assert(fmt != NULL);

  va_list ap;
  va_start(ap, fmt);
  errorframev(frame, token_source(ast->t), token_line_number(ast->t),
    token_line_position(ast->t), fmt, ap);
  va_end(ap);
}