a711b27493e781e4f6e862b9ab2503527699fc1b
[geeqie.git] / src / lua.c
1 /** \file
2  * \short LUA implementation
3  * \author Klaus Ethgen <Klaus@Ethgen.de>
4  */
5
6 /*
7  *  This file is a part of Geeqie project (http://geeqie.sourceforge.net/).
8  *  Copyright (C) 2008 - 2010 The Geeqie Team
9  *
10  *  This program is free software; you can redistribute it and/or modify it
11  *  under the terms of the GNU General Public License as published by the Free
12  *  Software Foundation; either version 2 of the License, or (at your option)
13  *  any later version.
14  *
15  *  This program is distributed in the hope that it will be useful, but WITHOUT
16  *  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17  *  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
18  *  more details.
19  */
20
21 #include "config.h"
22
23 #ifdef HAVE_LUA
24
25 #include <lua.h>
26 #include <lauxlib.h>
27
28 static lua_State *L; /** The LUA object needed for all operations (NOTE: That is
29                        * a upper-case variable to match the documentation!) */
30
31 /**
32  * \brief Initialize the lua interpreter.
33  */
34 void lua_init(void)
35 {
36         L = luaL_newstate();
37         luaL_openlibs(L); /* Open all libraries for lua programms */
38 }
39
40 #endif
41 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */