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