SynGame/allegro-5.0.10-mingw-4.7.0/include/allegro5/internal/aintern.h

54 lines
1.4 KiB
C
Raw Normal View History

2019-09-10 11:14:36 +03:00
/* ______ ___ ___
* /\ _ \ /\_ \ /\_ \
* \ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___
* \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\
* \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \
* \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/
* \/_/\/_/\/____/\/____/\/____/\/___L\ \/_/ \/___/
* /\____/
* \_/__/
*
* Some definitions for internal use by the library code.
*
* By Shawn Hargreaves.
*
* See readme.txt for copyright information.
*/
#ifndef __al_included_allegro5_aintern_h
#define __al_included_allegro5_aintern_h
#ifndef __al_included_allegro5_allegro_h
#error must include allegro5/allegro.h first
#endif
#ifdef __cplusplus
extern "C" {
#endif
#define _ALLEGRO_MIN(x,y) (((x) < (y)) ? (x) : (y))
#define _ALLEGRO_MAX(x,y) (((x) > (y)) ? (x) : (y))
#define _ALLEGRO_CLAMP(x,y,z) _ALLEGRO_MAX((x), _ALLEGRO_MIN((y), (z)))
/* message stuff */
#define ALLEGRO_MESSAGE_SIZE 4096
/* various libc stuff */
AL_FUNC(void *, _al_sane_realloc, (void *ptr, size_t size));
AL_FUNC(char *, _al_sane_strncpy, (char *dest, const char *src, size_t n));
#define _AL_RAND_MAX 0xFFFF
AL_FUNC(void, _al_srand, (int seed));
AL_FUNC(int, _al_rand, (void));
AL_FUNC(int, _al_stricmp, (const char *s1, const char *s2));
#ifdef __cplusplus
}
#endif
#endif