/usr/include/allegro/inline/system.inl is in liballegro4-dev 2:4.4.2-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | /* ______ ___ ___
* /\ _ \ /\_ \ /\_ \
* \ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___
* \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\
* \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \
* \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/
* \/_/\/_/\/____/\/____/\/____/\/___L\ \/_/ \/___/
* /\____/
* \_/__/
*
* System inline functions (generic C).
*
* By Shawn Hargreaves.
*
* See readme.txt for copyright information.
*/
#ifndef ALLEGRO_SYSTEM_INL
#define ALLEGRO_SYSTEM_INL
#include "allegro/debug.h"
#ifdef __cplusplus
extern "C" {
#endif
AL_INLINE(void, set_window_title, (AL_CONST char *name),
{
ASSERT(system_driver);
if (system_driver->set_window_title)
system_driver->set_window_title(name);
})
AL_INLINE(int, desktop_color_depth, (void),
{
ASSERT(system_driver);
if (system_driver->desktop_color_depth)
return system_driver->desktop_color_depth();
else
return 0;
})
AL_INLINE(int, get_desktop_resolution, (int *width, int *height),
{
ASSERT(system_driver);
if (system_driver->get_desktop_resolution)
return system_driver->get_desktop_resolution(width, height);
else
return -1;
})
#ifdef __cplusplus
}
#endif
#endif /* ifndef ALLEGRO_SYSTEM_INL */
|