UGDK  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
defs.h
Go to the documentation of this file.
1 
3 #ifndef UGDK_SCRIPT_DEFS_H_
4 #define UGDK_SCRIPT_DEFS_H_
5 
7 #define LANG(name) name##Lang
8 
10 #define DEFINE_LANG_ID(name,id) \
11  const LangID LANG(name) = id;
12 
13 #ifndef SWIG_GENERATED
14 extern "C" {
16 struct swig_type_info;
17 
18 }
19 #endif
20 
21 namespace ugdk {
22 
23 namespace script {
24 
26 typedef size_t LangID;
27 
29 DEFINE_LANG_ID(Lua, 0);
30 DEFINE_LANG_ID(Python, 1);
31 
32 } /* namespace script */
33 
34 } /* namespace ugdk */
35 
36 #endif /* UGDK_SCRIPT_DEFS_H_ */
Definition: animation.h:11
size_t LangID
Type used for script languages' IDs.
Definition: defs.h:26
DEFINE_LANG_ID(Lua, 0)
Script languages ID's definition list.