/*
SjASMPlus Z80 Cross Compiler
Copyright (c) 2004-2006 Aprisobal
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the
use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it freely,
subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not claim
that you wrote the original software. If you use this software in a product,
an acknowledgment in the product documentation would be appreciated but is
not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
//sjdefs.h
#ifndef __SJDEFS
#define __SJDEFS
// version string
#define VERSION "1.15.1"
#define VERSION_NUM "0x00010F01"
#define LASTPASS 3
// output
#define _COUT cout << termcolor::reset <<
#define _CERR cerr << termcolor::red_br <<
#define _CMDL <<
#define _ENDL << termcolor::reset << endl
#define _END << termcolor::reset
// standard libraries
#ifdef WIN32
#define NOMINMAX
#include <windows.h>
#endif
#include <algorithm>
#include <stack>
#include <vector>
#include <iostream>
using std::cout;
using std::cerr;
using std::endl;
using std::flush;
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
#ifdef USE_LUA
extern "C" {
#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"
#include "tolua++.h"
}
#endif //USE_LUA
// global defines
#define LINEMAX 2048
#define LINEMAX2 LINEMAX*2
#define LABMAX 64
#define LABTABSIZE 32768
#define FUNTABSIZE 4096
typedef int32_t aint;
typedef uint8_t byte;
typedef uint16_t word;
typedef std::vector<char> stdin_log_t;
#ifndef PATH_MAX
#define PATH_MAX 4096
#endif
// include all headers
extern "C" {
#include "lua_lpack.h"
}
#include "devices.h"
#include "support.h"
#include "tables.h"
#include "reader.h"
#include "parser.h"
#include "z80.h"
#include "directives.h"
#include "sjio.h"
#include "io_snapshots.h"
#include "io_trd.h"
#include "io_tape.h"
#include "io_nex.h"
#include "sjasm.h"
#endif
//eof sjdefs.h