Hash :
964b7194
Author :
Date :
2012-05-17T21:12:27
Fixed compile error in lexer_glue.cpp. git-svn-id: https://angleproject.googlecode.com/svn/trunk@1089 736b8ea6-26fd-11df-bfd4-992fa37f6226
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
//
// Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
#include "Diagnostics.h"
#include <cassert>
namespace pp
{
Diagnostics::~Diagnostics()
{
}
void Diagnostics::report(ID id,
const SourceLocation& loc,
const std::string& text)
{
// TODO(alokp): Keep a count of errors and warnings.
print(id, loc, text);
}
Diagnostics::Severity Diagnostics::severity(ID id)
{
if ((id > ERROR_BEGIN) && (id < ERROR_END))
return ERROR;
if ((id > WARNING_BEGIN) && (id < WARNING_END))
return WARNING;
assert(false);
return ERROR;
}
} // namespace pp