The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
lua_types.cpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2014 - 2016 by David White <[email protected]>
3  Part of the Battle for Wesnoth Project http://www.wesnoth.org/
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details.
13 */
14 
15 #include "lua_types.hpp"
16 
17 /* Dummy pointer for getting unique keys for Lua's registry. */
18 static char const v_executeKey = 0;
19 static char const v_getunitKey = 0;
20 static char const v_unitvarKey = 0;
21 static char const v_ustatusKey = 0;
22 static char const v_uattacksKey = 0;
23 static char const v_uattackKey = 0;
24 static char const v_formulaKey = 0;
25 
26 
27 luatypekey const executeKey = static_cast<void *>(const_cast<char *>(&v_executeKey));
28 luatypekey const getunitKey = static_cast<void *>(const_cast<char *>(&v_getunitKey));
29 luatypekey const unitvarKey = static_cast<void *>(const_cast<char *>(&v_unitvarKey));
30 luatypekey const ustatusKey = static_cast<void *>(const_cast<char *>(&v_ustatusKey));
31 luatypekey const uattacksKey = static_cast<void *>(const_cast<char *>(&v_uattacksKey));
32 luatypekey const uattackKey = static_cast<void *>(const_cast<char *>(&v_uattackKey));
33 luatypekey const formulaKey = static_cast<void *>(const_cast<char *>(&v_formulaKey));
static char const v_uattacksKey
Definition: lua_types.cpp:22
static char const v_executeKey
Definition: lua_types.cpp:18
static char const v_formulaKey
Definition: lua_types.cpp:24
static char const v_uattackKey
Definition: lua_types.cpp:23
luatypekey const getunitKey
Definition: lua_types.cpp:28
static char const v_ustatusKey
Definition: lua_types.cpp:21
luatypekey const ustatusKey
Definition: lua_types.cpp:30
static char const v_unitvarKey
Definition: lua_types.cpp:20
luatypekey const executeKey
Definition: lua_types.cpp:27
luatypekey const formulaKey
Definition: lua_types.cpp:33
void * luatypekey
Definition: lua_types.hpp:18
static char const v_getunitKey
Definition: lua_types.cpp:19
luatypekey const uattackKey
Definition: lua_types.cpp:32
luatypekey const uattacksKey
Definition: lua_types.cpp:31
luatypekey const unitvarKey
Definition: lua_types.cpp:29