mirror of
https://github.com/cwbaker/lalr.git
synced 2026-09-26 16:33:18 +03:00
34 lines
586 B
C++
34 lines
586 B
C++
//
|
|
// ErrorTemplate.hpp
|
|
// Copyright (c) 2008 - 2012 Charles Baker. All rights reserved.
|
|
//
|
|
|
|
#ifndef SWEET_ERROR_ERRORTEMPLATE_HPP_INCLUDED
|
|
#define SWEET_ERROR_ERRORTEMPLATE_HPP_INCLUDED
|
|
|
|
#include <stdarg.h>
|
|
|
|
namespace sweet
|
|
{
|
|
|
|
namespace error
|
|
{
|
|
|
|
/**
|
|
// A class template for implementing Error derived classes.
|
|
*/
|
|
template <int ERRNO, class Base>
|
|
class ErrorTemplate : public Base
|
|
{
|
|
public:
|
|
ErrorTemplate( const char* format, ... );
|
|
ErrorTemplate( const char* format, va_list args );
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#include "ErrorTemplate.ipp"
|
|
|
|
#endif
|