Freeciv-3.1
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 */
18TOLUA_API int tolua_common_z_open (lua_State* tolua_S);
19LUALIB_API int luaopen_common_z (lua_State* tolua_S);
20
21#ifdef HAVE_CONFIG_H
22#include <fc_config.h>
23#endif
24#include "luascript_types.h"
25
26/* function to register type */
27static void tolua_reg_types (lua_State* tolua_S)
28{
29}
30
31/* Open lib function */
32LUALIB_API int luaopen_common_z (lua_State* tolua_S)
33{
34 tolua_open(tolua_S);
35 tolua_reg_types(tolua_S);
36 tolua_module(tolua_S,NULL,0);
37 tolua_beginmodule(tolua_S,NULL);
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, 10,
58 125, 10,108,111, 99, 97,108, 32,102,117,110, 99,116,105,111,
59 110, 32,105,100, 95,101,113, 32, 40,111, 49, 44, 32,111, 50,
60 41, 10,114,101,116,117,114,110, 32,111, 49, 46,105,100, 32,
61 61, 61, 32,111, 50, 46,105,100, 32, 97,110,100, 32, 40,111,
62 49, 46,105,100, 32,126, 61, 32,110,105,108, 41, 10,101,110,
63 100, 10,108,111, 99, 97,108, 32,102,117,110, 99,116,105,111,
64 110, 32,115,116,114,105,110,103, 95,114,101,112, 40,115,101,
65 108,102, 41, 10,108,111, 99, 97,108, 32,105,100, 32, 61, 32,
66 115,101,108,102, 46,105,100, 10,108,111, 99, 97,108, 32,110,
67 97,109,101, 32, 61, 32,115,101,108,102, 46,114,117,108,101,
68 95,110, 97,109,101, 32, 97,110,100, 32,115,101,108,102, 58,
69 114,117,108,101, 95,110, 97,109,101, 40, 41, 32,111,114, 32,
70 115,101,108,102, 46,110, 97,109,101, 10,105,102, 32,110, 97,
71 109,101, 32, 97,110,100, 32,105,100, 32,116,104,101,110, 10,
72 114,101,116,117,114,110, 32,115,116,114,105,110,103, 46,102,
73 111,114,109, 97,116, 40, 39, 60, 37,115, 32, 35, 37,100, 32,
74 37,115, 62, 39, 44, 32,116,111,108,117, 97, 46,116,121,112,
75 101, 40,115,101,108,102, 41, 44, 32,105,100, 44, 32,110, 97,
76 109,101, 41, 10,101,108,115,101,105,102, 32,105,100, 32,116,
77 104,101,110, 10,114,101,116,117,114,110, 32,115,116,114,105,
78 110,103, 46,102,111,114,109, 97,116, 40, 39, 60, 37,115, 32,
79 35, 37,100, 62, 39, 44, 32,116,111,108,117, 97, 46,116,121,
80 112,101, 40,115,101,108,102, 41, 44, 32,105,100, 41, 10,101,
81 108,115,101, 10,114,101,116,117,114,110, 32,115,116,114,105,
82 110,103, 46,102,111,114,109, 97,116, 40, 39, 60, 37,115, 62,
83 39, 44, 32,116,111,108,117, 97, 46,116,121,112,101, 40,115,
84 101,108,102, 41, 41, 10,101,110,100, 10,101,110,100, 10,102,
85 111,114, 32,105,110,100,101,120, 44, 32,116,121,112,101,110,
86 97,109,101, 32,105,110, 32,105,112, 97,105,114,115, 40, 97,
87 112,105, 95,116,121,112,101,115, 41, 32,100,111, 10,108,111,
88 99, 97,108, 32, 97,112,105, 95,116,121,112,101, 32, 61, 32,
89 95, 71, 91,116,121,112,101,110, 97,109,101, 93, 10, 97,112,
90 105, 95,116,121,112,101, 91, 34, 46,101,113, 34, 93, 32, 61,
91 32,105,100, 95,101,113, 10, 97,112,105, 95,116,121,112,101,
92 46, 95, 95,116,111,115,116,114,105,110,103, 32, 61, 32,115,
93 116,114,105,110,103, 95,114,101,112, 10,108,111, 99, 97,108,
94 32, 97,112,105, 95,116,121,112,101, 95,105,110,100,101,120,
95 32, 61, 32, 97,112,105, 95,116,121,112,101, 46, 95, 95,105,
96 110,100,101,120, 10,108,111, 99, 97,108, 32,112,114,111,112,
97 101,114,116,105,101,115, 32, 61, 32, 97,112,105, 95,116,121,
98 112,101, 46,112,114,111,112,101,114,116,105,101,115, 10,108,
99 111, 99, 97,108, 32,114, 97,119,101,113,117, 97,108, 32, 61,
100 32,114, 97,119,101,113,117, 97,108, 10,108,111, 99, 97,108,
101 32,115,116,114,105,110,103, 95,115,117, 98, 32, 61, 32,115,
102 116,114,105,110,103, 46,115,117, 98, 10,108,111, 99, 97,108,
103 32,102,117,110, 99,116,105,111,110, 32,102,105,101,108,100,
104 95,103,101,116,116,101,114, 40,115,101,108,102, 44, 32,102,
105 105,101,108,100, 41, 10,108,111, 99, 97,108, 32,103,101,116,
106 116,101,114, 32, 61, 32,112,114,111,112,101,114,116,105,101,
107 115, 32, 97,110,100, 32,112,114,111,112,101,114,116,105,101,
108 115, 91,102,105,101,108,100, 93, 10,105,102, 32,103,101,116,
109 116,101,114, 32,116,104,101,110, 10,114,101,116,117,114,110,
110 32,103,101,116,116,101,114, 40,115,101,108,102, 41, 10,101,
111 108,115,101, 10,108,111, 99, 97,108, 32,112,102,120, 32, 61,
112 32,115,116,114,105,110,103, 95,115,117, 98, 40,102,105,101,
113 108,100, 44, 32, 49, 44, 32, 49, 41, 10,105,102, 32,114, 97,
114 119,101,113,117, 97,108, 40,112,102,120, 44, 32, 39, 46, 39,
115 41, 32,111,114, 32,114, 97,119,101,113,117, 97,108, 40,112,
116 102,120, 44, 32, 39, 95, 39, 41, 32,116,104,101,110, 10,114,
117 101,116,117,114,110, 32,110,105,108, 10,101,108,115,101, 10,
118 114,101,116,117,114,110, 32, 97,112,105, 95,116,121,112,101,
119 95,105,110,100,101,120, 40,115,101,108,102, 44, 32,102,105,
120 101,108,100, 41, 10,101,110,100, 10,101,110,100, 10,101,110,
121 100, 10, 97,112,105, 95,116,121,112,101, 46, 95, 95,105,110,
122 100,101,120, 32, 61, 32,102,105,101,108,100, 95,103,101,116,
123 116,101,114, 10, 97,112,105, 95,116,121,112,101, 91, 34, 46,
124 115,101,116, 34, 93, 32, 61, 32,110,105,108, 10, 97,112,105,
125 95,116,121,112,101, 46, 95, 95,109,101,116, 97,116, 97, 98,
126 108,101, 32, 61, 32,102, 97,108,115,101, 10, 95, 71, 91,116,
127 121,112,101,110, 97,109,101, 93, 32, 61, 32,110,105,108, 10,
128 101,110,100, 10,101,110,100, 10,116,111,108,117, 97, 32, 61,
129 32,123, 10,116,121,112,101, 61,116,111,108,117, 97, 46,116,
130 121,112,101, 44, 10,125, 10,109,101,116,104,111,100,115, 95,
131 112,114,105,118, 97,116,101, 32, 61, 32,110,105,108,32
132 };
133 if (luaL_loadbuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code") == LUA_OK)
134 lua_pcall(tolua_S,0,LUA_MULTRET,0);
135 } /* end of embedded lua code */
136
137 tolua_endmodule(tolua_S);
138 return 1;
139}
140/* Open tolua function */
141TOLUA_API int tolua_common_z_open (lua_State* tolua_S)
142{
143 lua_pushcfunction(tolua_S, luaopen_common_z);
144 lua_pushstring(tolua_S, "common_z");
145 lua_call(tolua_S, 1, 0);
146 return 1;
147}
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)