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, 83,112,101, 99,105, 97,108,105,115,116, 34,
58 44, 10, 34, 68,105,114,101, 99,116,105,111,110, 34, 44, 10,
59 34, 71, 97,109,101, 95, 73,110,102,111, 34, 10,125, 10,108,
60 111, 99, 97,108, 32,102,117,110, 99,116,105,111,110, 32,105,
61 100, 95,101,113, 32, 40,111, 49, 44, 32,111, 50, 41, 10,114,
62 101,116,117,114,110, 32,111, 49, 46,105,100, 32, 61, 61, 32,
63 111, 50, 46,105,100, 32, 97,110,100, 32, 40,111, 49, 46,105,
64 100, 32,126, 61, 32,110,105,108, 41, 10,101,110,100, 10,108,
65 111, 99, 97,108, 32,102,117,110, 99,116,105,111,110, 32,115,
66 116,114,105,110,103, 95,114,101,112, 40,115,101,108,102, 41,
67 10,108,111, 99, 97,108, 32,105,100, 32, 61, 32,115,101,108,
68 102, 46,105,100, 10,108,111, 99, 97,108, 32,110, 97,109,101,
69 32, 61, 32,115,101,108,102, 46,114,117,108,101, 95,110, 97,
70 109,101, 32, 97,110,100, 32,115,101,108,102, 58,114,117,108,
71 101, 95,110, 97,109,101, 40, 41, 32,111,114, 32,115,101,108,
72 102, 46,110, 97,109,101, 10,105,102, 32,110, 97,109,101, 32,
73 97,110,100, 32,105,100, 32,116,104,101,110, 10,114,101,116,
74 117,114,110, 32,115,116,114,105,110,103, 46,102,111,114,109,
75 97,116, 40, 39, 60, 37,115, 32, 35, 37,100, 32, 37,115, 62,
76 39, 44, 32,116,111,108,117, 97, 46,116,121,112,101, 40,115,
77 101,108,102, 41, 44, 32,105,100, 44, 32,110, 97,109,101, 41,
78 10,101,108,115,101,105,102, 32,105,100, 32,116,104,101,110,
79 10,114,101,116,117,114,110, 32,115,116,114,105,110,103, 46,
80 102,111,114,109, 97,116, 40, 39, 60, 37,115, 32, 35, 37,100,
81 62, 39, 44, 32,116,111,108,117, 97, 46,116,121,112,101, 40,
82 115,101,108,102, 41, 44, 32,105,100, 41, 10,101,108,115,101,
83 10,114,101,116,117,114,110, 32,115,116,114,105,110,103, 46,
84 102,111,114,109, 97,116, 40, 39, 60, 37,115, 62, 39, 44, 32,
85 116,111,108,117, 97, 46,116,121,112,101, 40,115,101,108,102,
86 41, 41, 10,101,110,100, 10,101,110,100, 10,102,111,114, 32,
87 105,110,100,101,120, 44, 32,116,121,112,101,110, 97,109,101,
88 32,105,110, 32,105,112, 97,105,114,115, 40, 97,112,105, 95,
89 116,121,112,101,115, 41, 32,100,111, 10,108,111, 99, 97,108,
90 32, 97,112,105, 95,116,121,112,101, 32, 61, 32, 95, 71, 91,
91 116,121,112,101,110, 97,109,101, 93, 10, 97,112,105, 95,116,
92 121,112,101, 91, 34, 46,101,113, 34, 93, 32, 61, 32,105,100,
93 95,101,113, 10, 97,112,105, 95,116,121,112,101, 46, 95, 95,
94 116,111,115,116,114,105,110,103, 32, 61, 32,115,116,114,105,
95 110,103, 95,114,101,112, 10,108,111, 99, 97,108, 32, 97,112,
96 105, 95,116,121,112,101, 95,105,110,100,101,120, 32, 61, 32,
97 97,112,105, 95,116,121,112,101, 46, 95, 95,105,110,100,101,
98 120, 10,108,111, 99, 97,108, 32,112,114,111,112,101,114,116,
99 105,101,115, 32, 61, 32, 97,112,105, 95,116,121,112,101, 46,
100 112,114,111,112,101,114,116,105,101,115, 10,108,111, 99, 97,
101 108, 32,114, 97,119,101,113,117, 97,108, 32, 61, 32,114, 97,
102 119,101,113,117, 97,108, 10,108,111, 99, 97,108, 32,115,116,
103 114,105,110,103, 95,115,117, 98, 32, 61, 32,115,116,114,105,
104 110,103, 46,115,117, 98, 10,108,111, 99, 97,108, 32,102,117,
105 110, 99,116,105,111,110, 32,102,105,101,108,100, 95,103,101,
106 116,116,101,114, 40,115,101,108,102, 44, 32,102,105,101,108,
107 100, 41, 10,108,111, 99, 97,108, 32,103,101,116,116,101,114,
108 32, 61, 32,112,114,111,112,101,114,116,105,101,115, 32, 97,
109 110,100, 32,112,114,111,112,101,114,116,105,101,115, 91,102,
110 105,101,108,100, 93, 10,105,102, 32,103,101,116,116,101,114,
111 32,116,104,101,110, 10,114,101,116,117,114,110, 32,103,101,
112 116,116,101,114, 40,115,101,108,102, 41, 10,101,108,115,101,
113 10,108,111, 99, 97,108, 32,112,102,120, 32, 61, 32,115,116,
114 114,105,110,103, 95,115,117, 98, 40,102,105,101,108,100, 44,
115 32, 49, 44, 32, 49, 41, 10,105,102, 32,114, 97,119,101,113,
116 117, 97,108, 40,112,102,120, 44, 32, 39, 46, 39, 41, 32,111,
117 114, 32,114, 97,119,101,113,117, 97,108, 40,112,102,120, 44,
118 32, 39, 95, 39, 41, 32,116,104,101,110, 10,114,101,116,117,
119 114,110, 32,110,105,108, 10,101,108,115,101, 10,114,101,116,
120 117,114,110, 32, 97,112,105, 95,116,121,112,101, 95,105,110,
121 100,101,120, 40,115,101,108,102, 44, 32,102,105,101,108,100,
122 41, 10,101,110,100, 10,101,110,100, 10,101,110,100, 10, 97,
123 112,105, 95,116,121,112,101, 46, 95, 95,105,110,100,101,120,
124 32, 61, 32,102,105,101,108,100, 95,103,101,116,116,101,114,
125 10, 97,112,105, 95,116,121,112,101, 91, 34, 46,115,101,116,
126 34, 93, 32, 61, 32,110,105,108, 10, 97,112,105, 95,116,121,
127 112,101, 46, 95, 95,109,101,116, 97,116, 97, 98,108,101, 32,
128 61, 32,102, 97,108,115,101, 10, 95, 71, 91,116,121,112,101,
129 110, 97,109,101, 93, 32, 61, 32,110,105,108, 10,101,110,100,
130 10,101,110,100, 10,116,111,108,117, 97, 32, 61, 32,123, 10,
131 116,121,112,101, 61,116,111,108,117, 97, 46,116,121,112,101,
132 44, 10,125, 10,103, 97,109,101, 91, 34, 46,115,101,116, 34,
133 93, 32, 61, 32,110,105,108, 10,109,101,116,104,111,100,115,
134 95,112,114,105,118, 97,116,101, 32, 61, 32,110,105,108,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)