2007-11-16 18:25:45 +00:00
|
|
|
/* ASE - Allegro Sprite Editor
|
2008-10-18 19:35:26 +00:00
|
|
|
* Copyright (C) 2001-2008 David A. Capello
|
2007-09-18 23:57:02 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef __ASE_CONFIG_H
|
|
|
|
# error You cannot use config.h two times
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define __ASE_CONFIG_H
|
|
|
|
|
|
|
|
/* general information */
|
2008-03-27 14:29:33 +00:00
|
|
|
#define PACKAGE "ASE"
|
2008-10-11 20:41:27 +00:00
|
|
|
#define VERSION "0.6"
|
2007-11-28 14:19:36 +00:00
|
|
|
#define WEBSITE "http://www.aseprite.org/"
|
2008-01-03 23:22:04 +00:00
|
|
|
#define COPYRIGHT "Copyright (C) 2001-2008 David A. Capello"
|
2007-09-18 23:57:02 +00:00
|
|
|
|
|
|
|
#define PRINTF verbose_printf
|
|
|
|
|
|
|
|
/* defined in src/core/core.c */
|
|
|
|
void verbose_printf(const char *format, ...);
|
|
|
|
|
|
|
|
/* strings */
|
|
|
|
const char *msgids_get(const char *id); /* src/intl/msgids.[ch] */
|
|
|
|
|
|
|
|
#define _(msgid) (msgids_get(msgid))
|
|
|
|
|
|
|
|
#include <math.h>
|
|
|
|
#undef PI
|
|
|
|
#define PI 3.14159265358979323846
|
2007-12-11 20:05:18 +00:00
|
|
|
|
|
|
|
#include <allegro/base.h>
|
|
|
|
|
|
|
|
typedef uint8_t ase_uint8;
|
|
|
|
typedef uint16_t ase_uint16;
|
|
|
|
typedef uint32_t ase_uint32;
|
2008-10-13 21:43:41 +00:00
|
|
|
|
|
|
|
#if defined __cplusplus && defined MEMLEAK
|
|
|
|
|
|
|
|
#include <new>
|
|
|
|
#include "jinete/jbase.h"
|
|
|
|
|
|
|
|
inline void* operator new(std::size_t size)
|
|
|
|
{
|
|
|
|
void* ptr = jmalloc(size);
|
|
|
|
if (!ptr)
|
|
|
|
throw std::bad_alloc();
|
|
|
|
return ptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
inline void operator delete(void* ptr)
|
|
|
|
{
|
|
|
|
if (!ptr)
|
|
|
|
return;
|
|
|
|
jfree(ptr);
|
|
|
|
}
|
|
|
|
|
|
|
|
inline void* operator new[](std::size_t size)
|
|
|
|
{
|
|
|
|
void* ptr = jmalloc(size);
|
|
|
|
if (!ptr)
|
|
|
|
throw std::bad_alloc();
|
|
|
|
return ptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
inline void operator delete[](void* ptr)
|
|
|
|
{
|
|
|
|
if (!ptr)
|
|
|
|
return;
|
|
|
|
jfree(ptr);
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|