Freeciv-3.3
Loading...
Searching...
No Matches
tolua_common_z_gen.c
Go to the documentation of this file.
1/*
2** Lua binding: common_z
3*/
4
5#include "tolua.h"
6
7#ifndef __cplusplus
8#include <stdlib.h>
9#endif
10#ifdef __cplusplus
11 extern "C" int tolua_bnd_takeownership (lua_State* L); // from tolua_map.c
12#else
13 int tolua_bnd_takeownership (lua_State* L); /* from tolua_map.c */
14#endif
15#include <string.h>
16
17/* Exported function */
20
21#ifdef HAVE_CONFIG_H
22#include <fc_config.h>
23#endif
24#include "luascript_types.h"
25
26/* function to register type */
28{
29}
30
31/* Open lib function */
33{
38
39 { /* begin embedded lua code */
40 static unsigned char B[] = {
41 10,100,111, 10,108,111, 99, 97,108, 32, 97,112,105, 95,116,
42 121,112,101,115, 32, 61, 32,123, 10, 34, 66,117,105,108,100,
43 105,110,103, 95, 84,121,112,101, 34, 44, 10, 34, 67,105,116,
44 121, 34, 44, 10, 34, 67,105,116,121, 95, 76,105,115,116, 95,
45 76,105,110,107, 34, 44, 10, 34, 67,111,110,110,101, 99,116,
46 105,111,110, 34, 44, 10, 34, 71,111,118,101,114,110,109,101,
47 110,116, 34, 44, 10, 34, 78, 97,116,105,111,110, 95, 84,121,
48 112,101, 34, 44, 10, 34, 78,111,110,101,120,105,115,116,101,
49 110,116, 34, 44, 10, 34, 80,108, 97,121,101,114, 34, 44, 10,
50 34, 84,101, 99,104, 95, 84,121,112,101, 34, 44, 10, 34, 84,
51 101,114,114, 97,105,110, 34, 44, 10, 34, 84,105,108,101, 34,
52 44, 10, 34, 85,110,105,116, 34, 44, 10, 34, 85,110,105,116,
53 95, 76,105,115,116, 95, 76,105,110,107, 34, 44, 10, 34, 85,
54 110,105,116, 95, 84,121,112,101, 34, 44, 10, 34, 68,105,115,
55 97,115,116,101,114, 34, 44, 10, 34, 65, 99,104,105,101,118,
56 101,109,101,110,116, 34, 44, 10, 34, 65, 99,116,105,111,110,
57 34, 44, 10, 34, 68,105,114,101, 99,116,105,111,110, 34, 44,
58 10, 34, 71, 97,109,101, 95, 73,110,102,111, 34, 10,125, 10,
59 108,111, 99, 97,108, 32,102,117,110, 99,116,105,111,110, 32,
60 105,100, 95,101,113, 32, 40,111, 49, 44, 32,111, 50, 41, 10,
61 114,101,116,117,114,110, 32,111, 49, 46,105,100, 32, 61, 61,
62 32,111, 50, 46,105,100, 32, 97,110,100, 32, 40,111, 49, 46,
63 105,100, 32,126, 61, 32,110,105,108, 41, 10,101,110,100, 10,
64 108,111, 99, 97,108, 32,102,117,110, 99,116,105,111,110, 32,
65 115,116,114,105,110,103, 95,114,101,112, 40,115,101,108,102,
66 41, 10,108,111, 99, 97,108, 32,105,100, 32, 61, 32,115,101,
67 108,102, 46,105,100, 10,108,111, 99, 97,108, 32,110, 97,109,
68 101, 32, 61, 32,115,101,108,102, 46,114,117,108,101, 95,110,
69 97,109,101, 32, 97,110,100, 32,115,101,108,102, 58,114,117,
70 108,101, 95,110, 97,109,101, 40, 41, 32,111,114, 32,115,101,
71 108,102, 46,110, 97,109,101, 10,105,102, 32,110, 97,109,101,
72 32, 97,110,100, 32,105,100, 32,116,104,101,110, 10,114,101,
73 116,117,114,110, 32,115,116,114,105,110,103, 46,102,111,114,
74 109, 97,116, 40, 39, 60, 37,115, 32, 35, 37,100, 32, 37,115,
75 62, 39, 44, 32,116,111,108,117, 97, 46,116,121,112,101, 40,
76 115,101,108,102, 41, 44, 32,105,100, 44, 32,110, 97,109,101,
77 41, 10,101,108,115,101,105,102, 32,105,100, 32,116,104,101,
78 110, 10,114,101,116,117,114,110, 32,115,116,114,105,110,103,
79 46,102,111,114,109, 97,116, 40, 39, 60, 37,115, 32, 35, 37,
80 100, 62, 39, 44, 32,116,111,108,117, 97, 46,116,121,112,101,
81 40,115,101,108,102, 41, 44, 32,105,100, 41, 10,101,108,115,
82 101, 10,114,101,116,117,114,110, 32,115,116,114,105,110,103,
83 46,102,111,114,109, 97,116, 40, 39, 60, 37,115, 62, 39, 44,
84 32,116,111,108,117, 97, 46,116,121,112,101, 40,115,101,108,
85 102, 41, 41, 10,101,110,100, 10,101,110,100, 10,102,111,114,
86 32,105,110,100,101,120, 44, 32,116,121,112,101,110, 97,109,
87 101, 32,105,110, 32,105,112, 97,105,114,115, 40, 97,112,105,
88 95,116,121,112,101,115, 41, 32,100,111, 10,108,111, 99, 97,
89 108, 32, 97,112,105, 95,116,121,112,101, 32, 61, 32, 95, 71,
90 91,116,121,112,101,110, 97,109,101, 93, 10, 97,112,105, 95,
91 116,121,112,101, 91, 34, 46,101,113, 34, 93, 32, 61, 32,105,
92 100, 95,101,113, 10, 97,112,105, 95,116,121,112,101, 46, 95,
93 95,116,111,115,116,114,105,110,103, 32, 61, 32,115,116,114,
94 105,110,103, 95,114,101,112, 10,108,111, 99, 97,108, 32, 97,
95 112,105, 95,116,121,112,101, 95,105,110,100,101,120, 32, 61,
96 32, 97,112,105, 95,116,121,112,101, 46, 95, 95,105,110,100,
97 101,120, 10,108,111, 99, 97,108, 32,112,114,111,112,101,114,
98 116,105,101,115, 32, 61, 32, 97,112,105, 95,116,121,112,101,
99 46,112,114,111,112,101,114,116,105,101,115, 10,108,111, 99,
100 97,108, 32,114, 97,119,101,113,117, 97,108, 32, 61, 32,114,
101 97,119,101,113,117, 97,108, 10,108,111, 99, 97,108, 32,115,
102 116,114,105,110,103, 95,115,117, 98, 32, 61, 32,115,116,114,
103 105,110,103, 46,115,117, 98, 10,108,111, 99, 97,108, 32,102,
104 117,110, 99,116,105,111,110, 32,102,105,101,108,100, 95,103,
105 101,116,116,101,114, 40,115,101,108,102, 44, 32,102,105,101,
106 108,100, 41, 10,108,111, 99, 97,108, 32,103,101,116,116,101,
107 114, 32, 61, 32,112,114,111,112,101,114,116,105,101,115, 32,
108 97,110,100, 32,112,114,111,112,101,114,116,105,101,115, 91,
109 102,105,101,108,100, 93, 10,105,102, 32,103,101,116,116,101,
110 114, 32,116,104,101,110, 10,114,101,116,117,114,110, 32,103,
111 101,116,116,101,114, 40,115,101,108,102, 41, 10,101,108,115,
112 101, 10,108,111, 99, 97,108, 32,112,102,120, 32, 61, 32,115,
113 116,114,105,110,103, 95,115,117, 98, 40,102,105,101,108,100,
114 44, 32, 49, 44, 32, 49, 41, 10,105,102, 32,114, 97,119,101,
115 113,117, 97,108, 40,112,102,120, 44, 32, 39, 46, 39, 41, 32,
116 111,114, 32,114, 97,119,101,113,117, 97,108, 40,112,102,120,
117 44, 32, 39, 95, 39, 41, 32,116,104,101,110, 10,114,101,116,
118 117,114,110, 32,110,105,108, 10,101,108,115,101, 10,114,101,
119 116,117,114,110, 32, 97,112,105, 95,116,121,112,101, 95,105,
120 110,100,101,120, 40,115,101,108,102, 44, 32,102,105,101,108,
121 100, 41, 10,101,110,100, 10,101,110,100, 10,101,110,100, 10,
122 97,112,105, 95,116,121,112,101, 46, 95, 95,105,110,100,101,
123 120, 32, 61, 32,102,105,101,108,100, 95,103,101,116,116,101,
124 114, 10, 97,112,105, 95,116,121,112,101, 91, 34, 46,115,101,
125 116, 34, 93, 32, 61, 32,110,105,108, 10, 97,112,105, 95,116,
126 121,112,101, 46, 95, 95,109,101,116, 97,116, 97, 98,108,101,
127 32, 61, 32,102, 97,108,115,101, 10, 95, 71, 91,116,121,112,
128 101,110, 97,109,101, 93, 32, 61, 32,110,105,108, 10,101,110,
129 100, 10,101,110,100, 10,116,111,108,117, 97, 32, 61, 32,123,
130 10,116,121,112,101, 61,116,111,108,117, 97, 46,116,121,112,
131 101, 44, 10,125, 10,103, 97,109,101, 91, 34, 46,115,101,116,
132 34, 93, 32, 61, 32,110,105,108, 10,109,101,116,104,111,100,
133 115, 95,112,114,105,118, 97,116,101, 32, 61, 32,110,105,108,
134 32
135 };
136 if (luaL_loadbuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code") == LUA_OK)
138 } /* end of embedded lua code */
139
141 return 1;
142}
143/* Open tolua function */
char * incite_cost
Definition comments.c:76
TOLUA_API int tolua_common_z_open(lua_State *tolua_S)
static void tolua_reg_types(lua_State *tolua_S)
int tolua_bnd_takeownership(lua_State *L)
LUALIB_API int luaopen_common_z(lua_State *tolua_S)