68 lines
2.9 KiB
C
68 lines
2.9 KiB
C
/*
|
|
* Copyright (c) 2024 Scott Duensing, scott@kangaroopunch.com
|
|
*
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
* in the Software without restriction, including without limitation the rights
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|
* furnished to do so, subject to the following conditions:
|
|
*
|
|
* The above copyright notice and this permission notice shall be included in
|
|
* all copies or substantial portions of the Software.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
* SOFTWARE.
|
|
*/
|
|
|
|
|
|
#ifndef MESSAGES_H
|
|
#define MESSAGES_H
|
|
|
|
|
|
#include "common.h"
|
|
|
|
|
|
#ifdef DEBUGGING
|
|
#define MSG_UNIMPLEMENTED "Unimplemented."
|
|
#define MSG_INT_INVALID_EXT_OPCODE "Invalid extended opcode!"
|
|
#define MSG_INT_NO_ABBR "No abbreviations in abbreviations!"
|
|
#define MSG_INT_OBJECT0_REF "Object 0 referenced!"
|
|
#define MSG_INT_OBJECT_BAD_ID "Invalid object ID!"
|
|
#define MSG_INT_REF_UNALLOCATED_LOCAL "Referenced unallocated local variable!"
|
|
#define MSG_INT_STACK_OVERFLOW "Stack overflow!"
|
|
#define MSG_INT_STACK_UNDERFLOW "Stack underflow!"
|
|
#define MSG_INT_UNIMPLEMENTED_OPCODE "Unimplemented opcode! %s %d"
|
|
#define MSG_INT_V12_SHIFT "Add V1/V2 shifting."
|
|
#define MSG_INT_V12_SHIFT_LOCK "Add V1/V2 shift locking."
|
|
#define MSG_MEM_BUFFER "Unable to allocate memory buffer."
|
|
#define MSG_OP_INP_BUFFER_TOO_SMALL "Text buffer too small for reading."
|
|
#define MSG_OP_OBJ_MISSING_PROPERTY "Missing object property."
|
|
#define MSG_OP_VAR_TOO_MANY_LOCALS "Too many local variables!"
|
|
#define MSG_OP_VAR_STACK_OVERFLOW "Stack overflow!"
|
|
#else // DEBUGGING
|
|
#define MSG_UNIMPLEMENTED ""
|
|
#define MSG_INT_INVALID_EXT_OPCODE ""
|
|
#define MSG_INT_NO_ABBR ""
|
|
#define MSG_INT_OBJECT0_REF ""
|
|
#define MSG_INT_OBJECT_BAD_ID ""
|
|
#define MSG_INT_REF_UNALLOCATED_LOCAL ""
|
|
#define MSG_INT_STACK_OVERFLOW ""
|
|
#define MSG_INT_STACK_UNDERFLOW ""
|
|
#define MSG_INT_UNIMPLEMENTED_OPCODE ""
|
|
#define MSG_INT_V12_SHIFT ""
|
|
#define MSG_INT_V12_SHIFT_LOCK ""
|
|
#define MSG_MEM_BUFFER ""
|
|
#define MSG_OP_INP_BUFFER_TOO_SMALL ""
|
|
#define MSG_OP_OBJ_MISSING_PROPERTY ""
|
|
#define MSG_OP_VAR_TOO_MANY_LOCALS ""
|
|
#define MSG_OP_VAR_STACK_OVERFLOW ""
|
|
#endif // DEBUGGING
|
|
|
|
|
|
#endif // MESSAGES_H
|