| author | Michael Busby <prodigysim@gmail.com> |
| Mon Jun 10 01:50:18 2013 +0100 (2013-06-10) | |
| changeset 264 | 70b8f318c379 |
| parent 263 | ba85a47ee414 |
| permissions | -rw-r--r-- |
| asherkin@263 | 1 |
/* |
| asherkin@263 | 2 |
* Copyright (C) 2012 David Anderson |
| asherkin@263 | 3 |
* |
| asherkin@263 | 4 |
* This file is part of JITCraft. |
| asherkin@263 | 5 |
* |
| asherkin@263 | 6 |
* JITCraft is free software: you can redistribute it and/or modify it under |
| asherkin@263 | 7 |
* the terms of the GNU General Public License as published by the Free |
| asherkin@263 | 8 |
* Software Foundation, either version 3 of the License, or (at your option) |
| asherkin@263 | 9 |
* any later version. |
| asherkin@263 | 10 |
* |
| asherkin@263 | 11 |
* Foobar is distributed in the hope that it will be useful, but WITHOUT ANY |
| asherkin@263 | 12 |
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
| asherkin@263 | 13 |
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. |
| asherkin@263 | 14 |
* |
| asherkin@263 | 15 |
* You should have received a copy of the GNU General Public License along with |
| asherkin@263 | 16 |
* JITCraft. If not, see http://www.gnu.org/licenses/. |
| asherkin@263 | 17 |
*/ |
| asherkin@263 | 18 |
#ifndef _include_jitcraft_messages_h_ |
| asherkin@263 | 19 |
#define _include_jitcraft_messages_h_ |
| asherkin@263 | 20 |
|
| asherkin@263 | 21 |
namespace ke { |
| asherkin@263 | 22 |
|
| asherkin@263 | 23 |
enum MessageType |
| asherkin@263 | 24 |
{ |
| asherkin@263 | 25 |
MessageType_SyntaxError, |
| asherkin@263 | 26 |
MessageType_TypeError, |
| asherkin@263 | 27 |
MessageType_SystemError |
| asherkin@263 | 28 |
}; |
| asherkin@263 | 29 |
|
| asherkin@263 | 30 |
enum Message |
| asherkin@263 | 31 |
{ |
| asherkin@263 | 32 |
#define MSG(Name, Type, String) Message_##Name, |
| asherkin@263 | 33 |
# include "Messages.tbl" |
| asherkin@263 | 34 |
#undef MSG |
| asherkin@263 | 35 |
MessageType_Total |
| asherkin@263 | 36 |
}; |
| asherkin@263 | 37 |
|
| asherkin@263 | 38 |
struct MessageInfo |
| asherkin@263 | 39 |
{ |
| asherkin@263 | 40 |
MessageType type; |
| asherkin@263 | 41 |
const char *format; |
| asherkin@263 | 42 |
}; |
| asherkin@263 | 43 |
|
| asherkin@263 | 44 |
extern const MessageInfo Messages[]; |
| asherkin@263 | 45 |
|
| asherkin@263 | 46 |
} |
| asherkin@263 | 47 |
|
| asherkin@263 | 48 |
#endif // _include_jitcraft_messages_h_ |