/
Main.h
executable file
·55 lines (42 loc) · 1.13 KB
/
Main.h
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
/*
** $Id: Main.h 60 2009-09-05 22:18:40Z basique $
** Main file
** See Copyright Notice in COPYRIGHT
*/
#ifndef __MAIN_H__
#define __MAIN_H__
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#ifdef __unix__
# include <unistd.h>
#elif __MSDOS__ || __WIN32__ || _MSC_VER
# include <direct.h>
# define chdir _chdir
#endif
#include "SDL.h"
#include "SDL_keysym.h"
#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"
#define UNUSED(x) ((void)(x)) /* to avoid warnings */
#define PROG_NAME "Scrupp"
#ifndef VERSION
# define VERSION "0.4"
#endif
#define COPYRIGHT "Copyright (C) 2005-2009 Andreas Krinke"
#define AUTHOR "Andreas Krinke"
#define NAMESPACE "scrupp"
#define DEFAULT_FILE "main.lua"
#define DEFAULT_ARCHIVE "main.sar"
#define SCRUPP_PATH "SCRUPP_PATH"
#define SCRUPP_PATH_DEFAULT "?.lua;?/init.lua;lib/?.lua;lib/?/init.lua"
#define CHANNELS 16 /* number of audio channels */
#define dbg(var) printf("%d\n", var)
char* lua_keys[SDLK_LAST];
char* appName;
int check_for_exit(lua_State *L);
int error_function(lua_State *L);
int luaopen_main(lua_State* L, const char *parent);
#endif /*__MAIN_H__*/