Freeciv-3.2
Loading...
Searching...
No Matches
tolua_common_a_gen.c
Go to the documentation of this file.
1/*
2** Lua binding: common_a
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 "api_common_intl.h"
26#include "luascript.h"
27#include "luascript_types.h"
28
29/* function to register type */
31{
32 tolua_usertype(tolua_S,"Nonexistent");
33}
34
35/* function: api_intl__ */
37{
38#ifndef TOLUA_RELEASE
40 if (
43 )
44 goto tolua_lerror;
45 else
46#endif
47 {
49 const char* untranslated = ((const char*) tolua_tostring(tolua_S,1,0));
50 {
51 const char* tolua_ret = (const char*) api_intl__(L,untranslated);
53 }
54 }
55 return 1;
56#ifndef TOLUA_RELEASE
58 tolua_error(tolua_S,"#ferror in function '_'.",&tolua_err);
59 return 0;
60#endif
61}
62
63/* function: api_intl_N_ */
65{
66#ifndef TOLUA_RELEASE
68 if (
71 )
72 goto tolua_lerror;
73 else
74#endif
75 {
77 const char* untranslated = ((const char*) tolua_tostring(tolua_S,1,0));
78 {
79 const char* tolua_ret = (const char*) api_intl_N_(L,untranslated);
81 }
82 }
83 return 1;
84#ifndef TOLUA_RELEASE
86 tolua_error(tolua_S,"#ferror in function 'N_'.",&tolua_err);
87 return 0;
88#endif
89}
90
91/* function: api_intl_Q_ */
93{
94#ifndef TOLUA_RELEASE
96 if (
99 )
100 goto tolua_lerror;
101 else
102#endif
103 {
105 const char* untranslated = ((const char*) tolua_tostring(tolua_S,1,0));
106 {
107 const char* tolua_ret = (const char*) api_intl_Q_(L,untranslated);
108 tolua_pushstring(tolua_S,(const char*)tolua_ret);
109 }
110 }
111 return 1;
112#ifndef TOLUA_RELEASE
114 tolua_error(tolua_S,"#ferror in function 'Q_'.",&tolua_err);
115 return 0;
116#endif
117}
118
119/* function: api_intl_PL_ */
121{
122#ifndef TOLUA_RELEASE
124 if (
129 )
130 goto tolua_lerror;
131 else
132#endif
133 {
135 const char* singular = ((const char*) tolua_tostring(tolua_S,1,0));
136 const char* plural = ((const char*) tolua_tostring(tolua_S,2,0));
137 int n = ((int) tolua_tonumber(tolua_S,3,0));
138 {
139 const char* tolua_ret = (const char*) api_intl_PL_(L,singular,plural,n);
140 tolua_pushstring(tolua_S,(const char*)tolua_ret);
141 }
142 }
143 return 1;
144#ifndef TOLUA_RELEASE
146 tolua_error(tolua_S,"#ferror in function 'PL_'.",&tolua_err);
147 return 0;
148#endif
149}
150
151/* function: api_utilities_log_base */
153{
154#ifndef TOLUA_RELEASE
156 if (
160 )
161 goto tolua_lerror;
162 else
163#endif
164 {
166 int log_level = ((int) tolua_tonumber(tolua_S,1,0));
167 const char* message = ((const char*) tolua_tostring(tolua_S,2,0));
168 {
170 }
171 }
172 return 0;
173#ifndef TOLUA_RELEASE
175 tolua_error(tolua_S,"#ferror in function 'base'.",&tolua_err);
176 return 0;
177#endif
178}
179
180/* function: api_utilities_deprecation_warning */
182{
183#ifndef TOLUA_RELEASE
185 if (
190 )
191 goto tolua_lerror;
192 else
193#endif
194 {
196 char* method = ((char*) tolua_tostring(tolua_S,1,0));
197 char* replacement = ((char*) tolua_tostring(tolua_S,2,0));
198 char* deprecated_since = ((char*) tolua_tostring(tolua_S,3,0));
199 {
201 }
202 }
203 return 0;
204#ifndef TOLUA_RELEASE
206 tolua_error(tolua_S,"#ferror in function 'deprecation_warning'.",&tolua_err);
207 return 0;
208#endif
209}
210
211/* function: api_utilities_random */
213{
214#ifndef TOLUA_RELEASE
216 if (
220 )
221 goto tolua_lerror;
222 else
223#endif
224 {
226 int min = ((int) tolua_tonumber(tolua_S,1,0));
227 int max = ((int) tolua_tonumber(tolua_S,2,0));
228 {
229 int tolua_ret = (int) api_utilities_random(L,min,max);
231 }
232 }
233 return 1;
234#ifndef TOLUA_RELEASE
236 tolua_error(tolua_S,"#ferror in function 'random'.",&tolua_err);
237 return 0;
238#endif
239}
240
241/* function: api_utilities_fc_version */
243{
244#ifndef TOLUA_RELEASE
246 if (
248 )
249 goto tolua_lerror;
250 else
251#endif
252 {
254 {
255 const char* tolua_ret = (const char*) api_utilities_fc_version(L);
256 tolua_pushstring(tolua_S,(const char*)tolua_ret);
257 }
258 }
259 return 1;
260#ifndef TOLUA_RELEASE
262 tolua_error(tolua_S,"#ferror in function 'fc_version'.",&tolua_err);
263 return 0;
264#endif
265}
266
267/* function: api_utilities_name_version */
269{
270#ifndef TOLUA_RELEASE
272 if (
274 )
275 goto tolua_lerror;
276 else
277#endif
278 {
280 {
281 const char* tolua_ret = (const char*) api_utilities_name_version(L);
282 tolua_pushstring(tolua_S,(const char*)tolua_ret);
283 }
284 }
285 return 1;
286#ifndef TOLUA_RELEASE
288 tolua_error(tolua_S,"#ferror in function 'name_version'.",&tolua_err);
289 return 0;
290#endif
291}
292
293/* function: api_utilities_comparable_version */
295{
296#ifndef TOLUA_RELEASE
298 if (
300 )
301 goto tolua_lerror;
302 else
303#endif
304 {
306 {
307 const char* tolua_ret = (const char*) api_utilities_comparable_version(L);
308 tolua_pushstring(tolua_S,(const char*)tolua_ret);
309 }
310 }
311 return 1;
312#ifndef TOLUA_RELEASE
314 tolua_error(tolua_S,"#ferror in function 'comparable_version'.",&tolua_err);
315 return 0;
316#endif
317}
318
319/* function: api_utilities_version_string */
321{
322#ifndef TOLUA_RELEASE
324 if (
326 )
327 goto tolua_lerror;
328 else
329#endif
330 {
332 {
333 const char* tolua_ret = (const char*) api_utilities_version_string(L);
334 tolua_pushstring(tolua_S,(const char*)tolua_ret);
335 }
336 }
337 return 1;
338#ifndef TOLUA_RELEASE
340 tolua_error(tolua_S,"#ferror in function 'version_string'.",&tolua_err);
341 return 0;
342#endif
343}
344
345/* function: api_utilities_versions_compare */
347{
348#ifndef TOLUA_RELEASE
350 if (
354 )
355 goto tolua_lerror;
356 else
357#endif
358 {
360 const char* ver1 = ((const char*) tolua_tostring(tolua_S,1,0));
361 const char* ver2 = ((const char*) tolua_tostring(tolua_S,2,0));
362 {
365 }
366 }
367 return 1;
368#ifndef TOLUA_RELEASE
370 tolua_error(tolua_S,"#ferror in function 'versions_compare'.",&tolua_err);
371 return 0;
372#endif
373}
374
375/* Open lib function */
377{
382 tolua_cclass(tolua_S,"Nonexistent","Nonexistent","",NULL);
383 tolua_beginmodule(tolua_S,"Nonexistent");
385
386 { /* begin embedded lua code */
387 static unsigned char B[] = {
388 10,102,117,110, 99,116,105,111,110, 32, 78,111,110,101,120,
389 105,115,116,101,110,116, 58,101,120,105,115,116,115, 40, 41,
390 10,114,101,116,117,114,110, 32,102, 97,108,115,101, 10,101,
391 110,100,32
392 };
393 if (luaL_loadbuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code") == LUA_OK)
395 } /* end of embedded lua code */
396
401 tolua_module(tolua_S,"log",0);
403 tolua_module(tolua_S,"level",0);
404 tolua_beginmodule(tolua_S,"level");
415
416 { /* begin embedded lua code */
417 static unsigned char B[] = {
418 10,102,117,110, 99,116,105,111,110, 32,108,111,103, 46,102,
419 97,116, 97,108, 40,102,109,116, 44, 32, 46, 46, 46, 41, 10,
420 108,111,103, 46, 98, 97,115,101, 40,108,111,103, 46,108,101,
421 118,101,108, 46, 70, 65, 84, 65, 76, 44, 32,115,116,114,105,
422 110,103, 46,102,111,114,109, 97,116, 40,102,109,116, 44, 32,
423 46, 46, 46, 41, 41, 10,101,110,100, 10,102,117,110, 99,116,
424 105,111,110, 32,108,111,103, 46,101,114,114,111,114, 40,102,
425 109,116, 44, 32, 46, 46, 46, 41, 10,108,111,103, 46, 98, 97,
426 115,101, 40,108,111,103, 46,108,101,118,101,108, 46, 69, 82,
427 82, 79, 82, 44, 32,115,116,114,105,110,103, 46,102,111,114,
428 109, 97,116, 40,102,109,116, 44, 32, 46, 46, 46, 41, 41, 10,
429 101,110,100, 10,102,117,110, 99,116,105,111,110, 32,108,111,
430 103, 46,119, 97,114,110, 40,102,109,116, 44, 32, 46, 46, 46,
431 41, 10,108,111,103, 46, 98, 97,115,101, 40,108,111,103, 46,
432 108,101,118,101,108, 46, 87, 65, 82, 78, 44, 32,115,116,114,
433 105,110,103, 46,102,111,114,109, 97,116, 40,102,109,116, 44,
434 32, 46, 46, 46, 41, 41, 10,101,110,100, 10,102,117,110, 99,
435 116,105,111,110, 32,108,111,103, 46,110,111,114,109, 97,108,
436 40,102,109,116, 44, 32, 46, 46, 46, 41, 10,108,111,103, 46,
437 98, 97,115,101, 40,108,111,103, 46,108,101,118,101,108, 46,
438 78, 79, 82, 77, 65, 76, 44, 32,115,116,114,105,110,103, 46,
439 102,111,114,109, 97,116, 40,102,109,116, 44, 32, 46, 46, 46,
440 41, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,110,
441 32,108,111,103, 46,118,101,114, 98,111,115,101, 40,102,109,
442 116, 44, 32, 46, 46, 46, 41, 10,108,111,103, 46, 98, 97,115,
443 101, 40,108,111,103, 46,108,101,118,101,108, 46, 86, 69, 82,
444 66, 79, 83, 69, 44, 32,115,116,114,105,110,103, 46,102,111,
445 114,109, 97,116, 40,102,109,116, 44, 32, 46, 46, 46, 41, 41,
446 10,101,110,100, 10,102,117,110, 99,116,105,111,110, 32,108,
447 111,103, 46,100,101, 98,117,103, 40,102,109,116, 44, 32, 46,
448 46, 46, 41, 10,108,111,103, 46, 98, 97,115,101, 40,108,111,
449 103, 46,108,101,118,101,108, 46, 68, 69, 66, 85, 71, 44, 32,
450 115,116,114,105,110,103, 46,102,111,114,109, 97,116, 40,102,
451 109,116, 44, 32, 46, 46, 46, 41, 41, 10,101,110,100, 10,102,
452 117,110, 99,116,105,111,110, 32,101,114,114,111,114, 95,108,
453 111,103, 40,109,115,103, 41, 10,108,111,103, 46,101,114,114,
454 111,114, 40,109,115,103, 41, 10,101,110,100, 10,102,117,110,
455 99,116,105,111,110, 32,100,101, 98,117,103, 95,108,111,103,
456 40,109,115,103, 41, 10,108,111,103, 46,100,101, 98,117,103,
457 40,109,115,103, 41, 10,101,110,100,32
458 };
459 if (luaL_loadbuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code") == LUA_OK)
461 } /* end of embedded lua code */
462
469
470 { /* begin embedded lua code */
471 static unsigned char B[] = {
472 10,102,117,110, 99,116,105,111,110, 32, 95,102,114,101,101,
473 99,105,118, 95,115,116, 97,116,101, 95,100,117,109,112, 40,
474 41, 10,108,111, 99, 97,108, 32,114,101,115, 32, 61, 32, 39,
475 39, 10,102,111,114, 32,107, 44, 32,118, 32,105,110, 32,112,
476 97,105,114,115, 40, 95, 71, 41, 32,100,111, 10,105,102, 32,
477 107, 32, 61, 61, 32, 39, 95, 86, 69, 82, 83, 73, 79, 78, 39,
478 32,116,104,101,110, 10,101,108,115,101,105,102, 32,116,121,
479 112,101, 40,118, 41, 32, 61, 61, 32, 39, 98,111,111,108,101,
480 97,110, 39, 10,111,114, 32,116,121,112,101, 40,118, 41, 32,
481 61, 61, 32, 39,110,117,109, 98,101,114, 39, 32,116,104,101,
482 110, 10,108,111, 99, 97,108, 32,114,118, 97,108,117,101, 32,
483 61, 32,116,111,115,116,114,105,110,103, 40,118, 41, 10,114,
484 101,115, 32, 61, 32,114,101,115, 32, 46, 46, 32,107, 32, 46,
485 46, 32, 39, 61, 39, 32, 46, 46, 32,114,118, 97,108,117,101,
486 32, 46, 46, 32, 39, 92,110, 39, 10,101,108,115,101,105,102,
487 32,116,121,112,101, 40,118, 41, 32, 61, 61, 32, 39,115,116,
488 114,105,110,103, 39, 32,116,104,101,110, 10,108,111, 99, 97,
489 108, 32,114,118, 97,108,117,101, 32, 61, 32,115,116,114,105,
490 110,103, 46,102,111,114,109, 97,116, 40, 39, 37,113, 39, 44,
491 32,118, 41, 10,114,101,115, 32, 61, 32,114,101,115, 32, 46,
492 46, 32,107, 32, 46, 46, 32, 39, 61, 39, 32, 46, 46, 32,114,
493 118, 97,108,117,101, 32, 46, 46, 32, 39, 92,110, 39, 10,101,
494 108,115,101,105,102, 32,116,121,112,101, 40,118, 41, 32, 61,
495 61, 32, 39,117,115,101,114,100, 97,116, 97, 39, 32,116,104,
496 101,110, 10,108,111, 99, 97,108, 32,109,101,116,104,111,100,
497 32, 61, 32,115,116,114,105,110,103, 46,108,111,119,101,114,
498 40,116,111,108,117, 97, 46,116,121,112,101, 40,118, 41, 41,
499 10,114,101,115, 32, 61, 32,114,101,115, 32, 46, 46, 32,107,
500 32, 46, 46, 32, 39, 61,102,105,110,100, 46, 39, 32, 46, 46,
501 32,109,101,116,104,111,100, 10,105,102, 32,109,101,116,104,
502 111,100, 32, 61, 61, 32, 39, 99,105,116,121, 39, 32,111,114,
503 32,109,101,116,104,111,100, 32, 61, 61, 32, 39,117,110,105,
504 116, 39, 32,116,104,101,110, 10,114,101,115, 32, 61, 32,114,
505 101,115, 32, 46, 46, 32, 39, 40,110,105,108, 44, 39, 32, 46,
506 46, 32,115,116,114,105,110,103, 46,102,111,114,109, 97,116,
507 40, 34, 37,100, 34, 44, 32,118, 46,105,100, 41, 32, 46, 46,
508 32, 39, 41, 39, 10,101,108,115,101,105,102, 32,116,121,112,
509 101, 40,118, 46,114,117,108,101, 95,110, 97,109,101, 41, 32,
510 61, 61, 32, 39,102,117,110, 99,116,105,111,110, 39, 32,116,
511 104,101,110, 10,114,101,115, 32, 61, 32,114,101,115, 32, 46,
512 46, 32, 39, 40, 39, 32, 46, 46, 32,115,116,114,105,110,103,
513 46,102,111,114,109, 97,116, 40, 34, 39, 37,115, 39, 34, 44,
514 32,118, 46,114,117,108,101, 95,110, 97,109,101, 40,118, 41,
515 41, 32, 46, 46, 32, 39, 41, 39, 10,101,108,115,101,105,102,
516 32,116,121,112,101, 40,118, 46,110, 97,109,101, 41, 32, 61,
517 61, 32, 39,102,117,110, 99,116,105,111,110, 39, 32,116,104,
518 101,110, 10,114,101,115, 32, 61, 32,114,101,115, 32, 46, 46,
519 32, 39, 40, 39, 32, 46, 46, 32,115,116,114,105,110,103, 46,
520 102,111,114,109, 97,116, 40, 34, 39, 37,115, 39, 34, 44, 32,
521 118, 46,110, 97,109,101, 40,118, 41, 41, 32, 46, 46, 32, 39,
522 41, 39, 10,101,108,115,101,105,102, 32,118, 46,110, 97,109,
523 101, 32,126, 61, 32,110,105,108, 32,116,104,101,110, 10,114,
524 101,115, 32, 61, 32,114,101,115, 32, 46, 46, 32, 39, 40, 39,
525 32, 46, 46, 32,115,116,114,105,110,103, 46,102,111,114,109,
526 97,116, 40, 34, 39, 37,115, 39, 34, 44, 32,118, 46,110, 97,
527 109,101, 41, 32, 46, 46, 32, 39, 41, 39, 10,101,108,115,101,
528 105,102, 32,118, 46,105,100, 32,116,104,101,110, 10,114,101,
529 115, 32, 61, 32,114,101,115, 32, 46, 46, 32, 39, 40, 39, 32,
530 46, 46, 32,115,116,114,105,110,103, 46,102,111,114,109, 97,
531 116, 40, 34, 37,100, 34, 44, 32,118, 46,105,100, 41, 32, 46,
532 46, 32, 39, 41, 39, 10,101,108,115,101, 10,114,101,115, 32,
533 61, 32,114,101,115, 32, 46, 46, 32, 39, 40, 41, 39, 10,101,
534 110,100, 10,114,101,115, 32, 61, 32,114,101,115, 32, 46, 46,
535 32, 39, 92,110, 39, 10,101,110,100, 10,101,110,100, 10,114,
536 101,116,117,114,110, 32,114,101,115, 10,101,110,100, 10,102,
537 117,110, 99,116,105,111,110, 32,108,105,115,116,101,110,118,
538 40, 41, 10,102, 99,101, 40, 95, 71, 41, 10,101,110,100, 10,
539 102,117,110, 99,116,105,111,110, 32,102, 99,101, 40,100, 97,
540 116,117,109, 44, 32,100,101,112,116,104, 44, 32,112,114,101,
541 102,105,120, 44, 32,115,116,114,105,110,103, 95,112, 97,114,
542 115,101, 41, 10,108,111, 99, 97,108, 32,115, 32, 61, 32, 34,
543 32, 37,115, 32, 34, 59, 10,108,111, 99, 97,108, 32,113, 32,
544 61, 32, 34, 32, 37,113, 32, 34, 10,108,111, 99, 97,108, 32,
545 102,117,110, 99,116,105,111,110, 32,113, 95,102,109,116, 32,
546 40,100, 41, 32,114,101,116,117,114,110, 32, 40, 34, 37,113,
547 34, 41, 58,102,111,114,109, 97,116, 40,100, 41, 32,101,110,
548 100, 10,108,111, 99, 97,108, 32,102,117,110, 99,116,105,111,
549 110, 32,115, 95,102,109,116, 32, 40,100, 41, 32,114,101,116,
550 117,114,110, 32, 40, 34, 37,115, 34, 41, 58,102,111,114,109,
551 97,116, 40,100, 41, 32,101,110,100, 10,108,111, 99, 97,108,
552 32,108,105,115,116,115, 32, 61, 32,115,101,116,109,101,116,
553 97,116, 97, 98,108,101, 32, 40, 32,123,125, 44, 32,123, 10,
554 95, 95,105,110,100,101,120, 32, 61, 32,102,117,110, 99,116,
555 105,111,110, 32, 40,116, 44, 32, 84, 41, 32,116, 91, 84, 93,
556 32, 61, 32,123,110, 32, 61, 32, 48,125, 59, 32,114,101,116,
557 117,114,110, 32,116, 91, 84, 93, 32,101,110,100, 59, 10,125,
558 32, 41, 10,108,111, 99, 97,108, 32,102,117,110, 99,116,105,
559 111,110, 32,116, 97, 98,117,108, 97,114, 32, 40,100, 97,116,
560 117,109, 44, 32, 84,121,112,101, 44, 32,105,100, 41, 10,108,
561 111, 99, 97,108, 32,108,105,115,116, 32, 61, 32,108,105,115,
562 116,115, 32, 91, 84,121,112,101, 93, 59, 32,108,111, 99, 97,
563 108, 32,105,110,120, 32, 61, 32,108,105,115,116, 32, 91,100,
564 97,116,117,109, 93, 10,105,102, 32,105,110,120, 32,116,104,
565 101,110, 32,114,101,116,117,114,110, 32,105,110,120, 46, 46,
566 34, 61, 34, 44, 32, 84,121,112,101, 10,101,108,115,101,105,
567 102, 32,105,100, 32,116,104,101,110, 32,108,105,115,116, 32,
568 91,100, 97,116,117,109, 93, 32, 61, 32,105,100, 59, 32,108,
569 105,115,116, 46,110, 32, 61, 32,109, 97,116,104, 46,109, 97,
570 120, 40,105,100, 44, 32,108,105,115,116, 46,110, 41, 10,114,
571 101,116,117,114,110, 32,105,100, 44, 32, 84,121,112,101, 44,
572 32, 34, 34, 10,101,108,115,101, 32,105,110,120, 32, 61, 32,
573 108,105,115,116, 46,110, 32, 43, 49, 59, 32,108,105,115,116,
574 32, 91,100, 97,116,117,109, 93, 32, 61, 32,105,110,120, 59,
575 32,108,105,115,116, 46,110, 32, 61, 32,105,110,120, 59, 10,
576 114,101,116,117,114,110, 32,105,110,120, 44, 32, 84,121,112,
577 101, 44, 32,105,110,120, 10,101,110,100, 10,101,110,100, 10,
578 108,111, 99, 97,108, 32, 84, 84, 32, 61, 32,115,101,116,109,
579 101,116, 97,116, 97, 98,108,101, 32, 40, 32,123, 10,110,117,
580 109, 98,101,114, 32, 61, 32,102,117,110, 99,116,105,111,110,
581 32, 40,100, 44, 32, 84, 41, 32,114,101,116,117,114,110, 32,
582 115, 95,102,109,116, 40,100, 41, 44, 32,109, 97,116,104, 46,
583 116,121,112,101, 40,100, 41, 32,101,110,100, 59, 10,115,116,
584 114,105,110,103, 32, 61, 32,102,117,110, 99,116,105,111,110,
585 32, 40,100, 44, 32, 84, 41, 10,108,111, 99, 97,108, 32,115,
586 116,114, 44, 32, 99,111,117,110,116, 44, 32,105,110,120, 44,
587 32,110,101,119, 32, 61, 32,100, 58,103,115,117, 98, 32, 40,
588 34, 91, 37, 99, 92,120, 56, 48, 45, 92,120, 70, 70, 93, 34,
589 44, 32, 34, 42, 34, 41, 10,105,102, 32, 99,111,117,110,116,
590 32,126, 61, 32, 48, 32,116,104,101,110, 32,105,110,120, 44,
591 32, 84, 44, 32,110,101,119, 32, 61, 32,116, 97, 98,117,108,
592 97,114, 40,100, 44, 32, 34, 83, 84, 82, 73, 78, 71, 34, 46,
593 46, 99,111,117,110,116, 41, 32,101,110,100, 10,114,101,116,
594 117,114,110, 32,113, 95,102,109,116, 40,115,116,114, 41, 46,
595 46, 40,105,110,120, 32, 97,110,100, 32, 34, 32, 34, 46, 46,
596 32,105,110,120, 32,111,114, 32, 34, 34, 41, 44, 10,100, 58,
597 102,105,110,100, 40, 34, 94, 91, 95, 37, 97, 93, 91, 95, 37,
598 97, 37,100, 93, 42, 36, 34, 41, 32, 97,110,100, 32, 34,105,
599 100,101,110,116,105,102,105,101,114, 34, 32,111,114, 32, 84,
600 44, 10,110,105,108, 10,101,110,100, 59, 10, 91, 34,102,117,
601 110, 99,116,105,111,110, 34, 93, 32, 61, 32,116, 97, 98,117,
602 108, 97,114, 59, 10,116,104,114,101, 97,100, 32, 61, 32,116,
603 97, 98,117,108, 97,114, 59, 10,116, 97, 98,108,101, 32, 61,
604 32,116, 97, 98,117,108, 97,114, 59, 10,117,115,101,114,100,
605 97,116, 97, 32, 61, 32,102,117,110, 99,116,105,111,110, 32,
606 40,100, 44, 32, 84, 41, 32, 84, 32, 61, 32,116,111,108,117,
607 97, 46,116,121,112,101, 40,100, 41, 59, 32,108,111, 99, 97,
608 108, 32,105,100, 32, 61, 32,100, 46,105,100, 59, 10,105,102,
609 32,100, 46,114,117,108,101, 95,110, 97,109,101, 32,116,104,
610 101,110, 32,114,101,116,117,114,110, 40, 34, 37,115, 32, 37,
611 113, 32, 34, 41, 58,102,111,114,109, 97,116, 40,105,100, 44,
612 100, 58,114,117,108,101, 95,110, 97,109,101, 40, 41, 41, 44,
613 84, 10,101,108,115,101, 32,114,101,116,117,114,110, 32,116,
614 97, 98,117,108, 97,114, 32, 40,100, 44, 32, 84, 44, 32,105,
615 100, 41, 10,101,110,100, 10,101,110,100, 59, 10,125, 44, 32,
616 123, 10, 95, 95,105,110,100,101,120, 32, 61, 32,102,117,110,
617 99,116,105,111,110, 32, 40, 41, 32,114,101,116,117,114,110,
618 32, 40,102,117,110, 99,116,105,111,110, 32, 40,100, 44, 84,
619 41, 32,114,101,116,117,114,110, 32,113, 95,102,109,116, 40,
620 100, 41, 44, 84, 32,101,110,100, 41, 32,101,110,100, 59, 10,
621 95, 95, 99, 97,108,108, 32, 61, 32,102,117,110, 99,116,105,
622 111,110, 32, 40,116, 44, 32,100, 41, 32,108,111, 99, 97,108,
623 32, 84, 32, 61, 32,116,121,112,101, 40,100, 41, 59, 32,114,
624 101,116,117,114,110, 32,116, 32, 91, 84, 93, 32, 40,100, 44,
625 32, 84, 41, 32,101,110,100, 59, 10,125, 32, 41, 10,108,111,
626 99, 97,108, 32,109,116, 32, 61, 32, 34, 32,109,101,116, 97,
627 32, 37,115, 32, 34, 10,108,111, 99, 97,108, 32,102,117,110,
628 99,116,105,111,110, 32,100,111, 95,100, 97,116,117,109, 32,
629 40,116,101,120,116, 44, 32,100, 97,116,117,109, 44, 32, 84,
630 121,112,101, 41, 10,108,111, 99, 97,108, 32,109,101,116, 97,
631 44, 32,118, 97,108, 44, 32, 84, 44, 32,110,101,119, 32, 61,
632 32,103,101,116,109,101,116, 97,116, 97, 98,108,101, 32, 40,
633 100, 97,116,117,109, 41, 59, 10,105,102, 32,116,121,112,101,
634 40,109,101,116, 97, 41, 32,126, 61, 32, 34,110,105,108, 34,
635 10,116,104,101,110, 32,118, 97,108, 44, 32, 84, 44, 32,110,
636 101,119, 32, 61, 32, 84, 84, 40,109,101,116, 97, 41, 59, 32,
637 116,101,120,116, 32, 61, 32,116,101,120,116, 46, 46,109,116,
638 58,102,111,114,109, 97,116, 40, 84, 41, 46, 46,118, 97,108,
639 10,101,110,100, 59, 10, 99,111,114,111,117,116,105,110,101,
640 46,121,105,101,108,100, 32, 40,116,101,120,116, 44, 32,100,
641 97,116,117,109, 44, 32, 84,121,112,101, 41, 59, 10,105,102,
642 32,110,101,119, 32,116,104,101,110, 32,114,101,116,117,114,
643 110, 32,109,101,116, 97, 44, 32,118, 97,108, 44, 32, 84, 32,
644 101,110,100, 10,101,110,100, 10,108,111, 99, 97,108, 32,102,
645 117,110, 99,116,105,111,110, 32, 99,111, 32, 40,116,101,120,
646 116, 44, 32,100, 49, 44, 32,112,114,101,102,105,120, 41, 10,
647 108,111, 99, 97,108, 32,118, 49, 44, 32, 84, 49, 44, 32,110,
648 101,119, 32, 61, 32, 84, 84, 40,100, 49, 41, 10,108,111, 99,
649 97,108, 32,100, 50, 44, 32,118, 50, 44, 32, 84, 50, 32, 61,
650 10,100,111, 95,100, 97,116,117,109, 32, 40,116,101,120,116,
651 46, 46, 34, 32, 40, 34, 46, 46, 84, 49, 46, 46, 34, 41, 32,
652 34, 46, 46,118, 49, 44, 32,100, 49, 44, 32, 84, 49, 41, 10,
653 105,102, 32,110,101,119, 32,116,104,101,110, 10, 99,111,114,
654 111,117,116,105,110,101, 46,121,105,101,108,100, 32, 40,112,
655 114,101,102,105,120, 46, 46,115, 58,102,111,114,109, 97,116,
656 40,100, 49, 41, 46, 46,110,101,119, 44, 32,100, 49, 44, 32,
657 84, 49, 41, 10,101,110,100, 10,119,104,105,108,101, 32,100,
658 50, 32,100,111, 32,100, 50, 44, 32,118, 50, 44, 32, 84, 50,
659 32, 61, 10,100,111, 95,100, 97,116,117,109, 32, 40,112,114,
660 101,102,105,120, 46, 46,109,116, 58,102,111,114,109, 97,116,
661 40,100, 50, 41, 46, 46,118, 50, 44, 32,100, 50, 44, 32, 84,
662 50, 41, 10,101,110,100, 10,101,110,100, 10,108,111, 99, 97,
663 108, 32,112,114,105,110,116,105,116, 32, 61, 32,108,111,103,
664 46,101,114,114,111,114, 10,108,111, 99, 97,108, 32,102,117,
665 110, 99,116,105,111,110, 32,112, 97,114,116, 95, 48, 32, 40,
666 100, 97,116,117,109, 44, 32, 99,111, 95,116,101,120,116, 41,
667 10,114,101,116,117,114,110, 32,123, 99,111, 95,116, 32, 61,
668 32, 99,111,114,111,117,116,105,110,101, 46,119,114, 97,112,
669 40, 99,111, 41, 59, 32,100, 97,116,117,109, 32, 61, 32,100,
670 97,116,117,109, 59, 32, 99,111, 95,116,101,120,116, 32, 61,
671 32, 99,111, 95,116,101,120,116, 59,125, 10,101,110,100, 10,
672 108,111, 99, 97,108, 32,102,117,110, 99,116,105,111,110, 32,
673 112, 97,114,116, 95, 49, 32, 40, 99,111, 95,115, 44, 32,112,
674 114,101,102,105,120, 41, 10,114,101,116,117,114,110, 32, 99,
675 111, 95,115, 46, 99,111, 95,116, 32, 40, 99,111, 95,115, 46,
676 99,111, 95,116,101,120,116, 44, 32, 99,111, 95,115, 46,100,
677 97,116,117,109, 44, 32,112,114,101,102,105,120, 41, 10,101,
678 110,100, 10,108,111, 99, 97,108, 32,100,101,116, 97,105,108,
679 115, 10,108,111, 99, 97,108, 32,102,117,110, 99,116,105,111,
680 110, 32,112, 97,114,116, 95,120, 32, 40, 99,111, 95,115,115,
681 44, 32,100,101,112,116,104, 44, 32,112,114,101,102,105,120,
682 41, 10,108,111, 99, 97,108, 32,116,101,120,116, 44, 32,115,
683 101,112, 32, 61, 32,112,114,101,102,105,120, 44, 32, 34, 34,
684 10,102,111,114, 32, 99, 44, 32, 99,111, 95,115, 32,105,110,
685 32,105,112, 97,105,114,115, 32, 40, 99,111, 95,115,115, 41,
686 10,100,111, 32,116,101,120,116, 44, 32,115,101,112, 32, 61,
687 32,116,101,120,116, 46, 46,115,101,112, 46, 46,112, 97,114,
688 116, 95, 49, 32, 40, 99,111, 95,115, 44, 32,112,114,101,102,
689 105,120, 41, 44, 32, 34, 59, 32, 34, 10,101,110,100, 59, 32,
690 112,114,105,110,116,105,116, 32, 40,116,101,120,116, 41, 10,
691 102,111,114, 32, 99, 44, 32, 99,111, 95,115, 32,105,110, 32,
692 105,112, 97,105,114,115, 32, 40, 99,111, 95,115,115, 41, 32,
693 100,111, 10,102,111,114, 32,116,101,120,116, 44, 32,100, 97,
694 116,117,109, 44, 32, 84,121,112,101, 32,105,110, 32,112, 97,
695 114,116, 95, 49, 44, 32, 99,111, 95,115, 44, 32, 34, 34, 32,
696 100,111, 10,100,101,116, 97,105,108,115, 32, 91, 84,121,112,
697 101, 93, 32, 40,112,114,101,102,105,120, 46, 46,116,101,120,
698 116, 44, 32,100, 97,116,117,109, 44, 32,100,101,112,116,104,
699 44, 32,112,114,101,102,105,120, 41, 10,101,110,100, 10,101,
700 110,100, 10,101,110,100, 10,108,111, 99, 97,108, 32, 77, 70,
701 32, 61, 32,109, 97,116,104, 46,102,108,111,111,114, 10,108,
702 111, 99, 97,108, 32,102,117,110, 99,116,105,111,110, 32,112,
703 112, 95,116,105,108,101, 32, 40,100, 41, 10,114,101,116,117,
704 114,110, 32, 40, 34, 32, 40, 37,115, 44, 37,115, 41, 32, 34,
705 41, 58,102,111,114,109, 97,116, 40, 32, 77, 70, 40,100, 46,
706 120, 41, 44, 32, 77, 70, 40,100, 46,121, 41, 32, 41, 10,101,
707 110,100, 10,100,101,116, 97,105,108,115, 32, 61, 32,115,101,
708 116,109,101,116, 97,116, 97, 98,108,101, 32, 40,123, 10,116,
709 97, 98,108,101, 32, 61, 32,102,117,110, 99,116,105,111,110,
710 32, 40,116,101,120,116, 44, 32,100, 44, 32,100,101,112,116,
711 104, 44, 32,112,114,101,102,105,120, 41, 10,105,102, 32,100,
712 101,112,116,104, 32, 61, 61, 32, 48, 10,116,104,101,110, 32,
713 112,114,105,110,116,105,116, 32, 40,116,101,120,116, 46, 46,
714 34, 32,108,105,109,105,116, 32,114,101, 97, 99,104,101,100,
715 34, 41, 10,101,108,115,101, 32,112,114,105,110,116,105,116,
716 32, 40,116,101,120,116, 41, 59, 32,102,111,114, 32,107,101,
717 121, 44, 32,118, 97,108, 32,105,110, 32,110,101,120,116, 44,
718 32,100, 44, 32,110,105,108, 32,100,111, 10,112, 97,114,116,
719 95,120, 40,123, 32,112, 97,114,116, 95, 48, 32, 40,107,101,
720 121, 44, 32, 34,107,101,121, 34, 41, 59, 32,112, 97,114,116,
721 95, 48, 32, 40,118, 97,108, 44, 32, 34,118, 97,108,117,101,
722 34, 41, 59, 32,125, 44, 10,100,101,112,116,104, 32, 45, 49,
723 44, 32,112,114,101,102,105,120, 46, 46, 34, 46, 34, 41, 10,
724 101,110,100, 10,101,110,100, 10,101,110,100, 59, 10,116,104,
725 114,101, 97,100, 32, 61, 32,102,117,110, 99,116,105,111,110,
726 32, 40,116,101,120,116, 44, 32,100, 41, 10,112,114,105,110,
727 116,105,116, 32, 40,116,101,120,116, 46, 46,115, 58,102,111,
728 114,109, 97,116, 40,100, 41, 46, 46, 99,111,114,111,117,116,
729 105,110,101, 46,115,116, 97,116,117,115, 40,100, 41, 46, 46,
730 10, 34, 32, 34, 32, 41, 10,101,110,100, 59, 10, 68,105,114,
731 101, 99,116,105,111,110, 32, 61, 32,102,117,110, 99,116,105,
732 111,110, 32, 40,116,101,120,116, 44, 32,100, 41, 32,101,110,
733 100, 59, 10, 84,105,108,101, 32, 61, 32,102,117,110, 99,116,
734 105,111,110, 32, 40,116,101,120,116, 44, 32,100, 41, 32,112,
735 114,105,110,116,105,116, 32, 40,116,101,120,116, 46, 46,112,
736 112, 95,116,105,108,101, 32, 40,100, 41, 32, 41, 32,101,110,
737 100, 59, 10, 80,108, 97,121,101,114, 32, 61, 32,102,117,110,
738 99,116,105,111,110, 32, 40,116,101,120,116, 44, 32,100, 41,
739 32,112,114,105,110,116,105,116, 32, 40,116,101,120,116, 46,
740 46, 40, 34, 32, 37,115, 37,115, 32, 40, 37,115, 58, 37,115,
741 41, 34, 41, 58, 10,102,111,114,109, 97,116, 40, 32,100, 46,
742 110, 97,116,105,111,110, 44, 32,100, 46, 97,105, 95, 99,111,
743 110,116,114,111,108,108,101,100, 32, 97,110,100, 32, 34, 45,
744 34, 32,111,114, 32, 34, 43, 34, 44, 10, 77, 70, 40,100, 58,
745 110,117,109, 95, 99,105,116,105,101,115, 40, 41, 41, 44, 32,
746 77, 70, 40,100, 58,110,117,109, 95,117,110,105,116,115, 40,
747 41, 41, 41, 32, 41, 10,101,110,100, 59, 10, 67,105,116,121,
748 32, 61, 32,102,117,110, 99,116,105,111,110, 32, 40,116,101,
749 120,116, 44, 32,100, 41, 32,112,114,105,110,116,105,116, 32,
750 40,116,101,120,116, 46, 46, 40, 34, 32, 37,113, 32, 40, 37,
751 115, 41, 32, 37,115, 32, 37,115, 34, 41, 58, 10,102,111,114,
752 109, 97,116, 40, 32,100, 46,110, 97,109,101, 44, 32,100, 46,
753 115,105,122,101, 44, 32,100, 46,111,119,110,101,114, 44, 32,
754 100, 46,116,105,108,101, 41, 46, 46,112,112, 95,116,105,108,
755 101, 32, 40,100, 46,116,105,108,101, 41, 32, 41, 10,101,110,
756 100, 59, 10, 85,110,105,116, 32, 61, 32,102,117,110, 99,116,
757 105,111,110, 32, 40,116,101,120,116, 44, 32,100, 41, 32,112,
758 114,105,110,116,105,116, 32, 40,116,101,120,116, 46, 46, 40,
759 34, 32, 37,115, 44, 32, 37,115, 32, 37,115, 34, 41, 58, 10,
760 102,111,114,109, 97,116, 40, 32,100, 46,117,116,121,112,101,
761 44, 32,100, 46,111,119,110,101,114, 44, 32,100, 58,103,101,
762 116, 95,104,111,109,101, 99,105,116,121, 40, 41, 32,111,114,
763 32, 34,110,111, 32,104,111,109,101, 32, 99,105,116,121, 34,
764 41, 32, 41, 10,101,110,100, 59, 10, 91, 34,102,117,110, 99,
765 116,105,111,110, 34, 93, 32, 61, 32,102,117,110, 99,116,105,
766 111,110, 32, 40,116,101,120,116, 44, 32,100, 41, 32,101,110,
767 100, 59, 10,125, 44,123, 10, 95, 95,105,110,100,101,120, 32,
768 61, 32,102,117,110, 99,116,105,111,110, 32, 40,116, 44, 32,
769 84, 41, 32,114,101,116,117,114,110, 32,112,114,105,110,116,
770 105,116, 32,101,110,100, 59, 10,125, 41, 10,105,102, 32,115,
771 116,114,105,110,103, 95,112, 97,114,115,101, 32,116,104,101,
772 110, 32,101,108,115,101, 32,116, 97, 98,117,108, 97,114, 40,
773 103,101,116,109,101,116, 97,116, 97, 98,108,101, 40, 34, 34,
774 41, 44, 32, 34,116, 97, 98,108,101, 34, 41, 32,101,110,100,
775 10,112, 97,114,116, 95,120, 32, 40,123, 32,112, 97,114,116,
776 95, 48, 32, 40,100, 97,116,117,109, 44, 32, 34,104,101, 97,
777 100, 34, 32, 41,125, 44, 10,116,121,112,101, 32, 40,100,101,
778 112,116,104, 41, 32, 61, 61, 32, 34,110,117,109, 98,101,114,
779 34, 32, 97,110,100, 32,100,101,112,116,104, 32,111,114, 32,
780 45, 49, 44, 10,116,121,112,101, 32, 40,112,114,101,102,105,
781 120, 41, 32, 61, 61, 32, 34,115,116,114,105,110,103, 34, 32,
782 97,110,100, 32,112,114,101,102,105,120, 32,111,114, 32, 34,
783 34, 41, 10,114,101,116,117,114,110, 32,108,105,115,116,115,
784 10,101,110,100, 10, 99,111,110,115,116, 32, 61, 32,123,125,
785 10,108,111, 99, 97,108, 32,100, 97,116, 97, 32, 61, 32,123,
786 125, 10, 99,111,110,115,116, 95,109,116, 32, 61, 32,123, 10,
787 95, 95,110,101,119,105,110,100,101,120, 32, 61, 32,102,117,
788 110, 99,116,105,111,110, 40, 97, 44, 98, 44, 99, 41, 10,105,
789 102, 32,100, 97,116, 97, 91, 98, 93, 32, 61, 61, 32,110,105,
790 108, 32,116,104,101,110, 10,105,102, 32,116,121,112,101, 40,
791 99, 41, 32, 61, 61, 32, 39,116, 97, 98,108,101, 39, 32,116,
792 104,101,110, 10,108,111, 99, 97,108, 32,112,114,111,120,121,
793 32, 61, 32,123,125, 10,108,111, 99, 97,108, 32,109,116, 32,
794 61, 32,123, 10, 95, 95,105,110,100,101,120, 32, 61, 32, 99,
795 44, 10, 95, 95,110,101,119,105,110,100,101,120, 32, 61, 32,
796 102,117,110, 99,116,105,111,110, 32, 40,116, 44,107, 44,118,
797 41, 10,108,111,103, 46,101,114,114,111,114, 40, 91, 91, 34,
798 65,116,116,101,109,112,116, 32,116,111, 32,117,112,100, 97,
799 116,101, 32,114,101, 97,100, 45,111,110,108,121, 32,116, 97,
800 98,108,101, 32, 39, 37,115, 39, 32,105,110,100,101,120, 32,
801 39, 37,115, 39, 32, 34, 10, 34,119,105,116,104, 32, 39, 37,
802 115, 39, 46, 34, 93, 93, 44, 32, 98, 44, 32,116,111,115,116,
803 114,105,110,103, 40,107, 41, 44, 32,116,111,115,116,114,105,
804 110,103, 40,118, 41, 41, 10,101,110,100, 10,125, 10,115,101,
805 116,109,101,116, 97,116, 97, 98,108,101, 40,112,114,111,120,
806 121, 44, 32,109,116, 41, 10,100, 97,116, 97, 91, 98, 93, 32,
807 61, 32,112,114,111,120,121, 10,101,108,115,101, 10,100, 97,
808 116, 97, 91, 98, 93, 32, 61, 32, 99, 10,101,110,100, 10,101,
809 108,115,101, 10,108,111,103, 46,101,114,114,111,114, 40, 34,
810 73,108,108,101,103, 97,108, 32, 97,115,115,105,103,110,109,
811 101,110,116, 32,116,111, 32, 99,111,110,115,116, 97,110,116,
812 32, 39, 37,115, 39, 46, 34, 44, 32,116,111,115,116,114,105,
813 110,103, 40, 98, 41, 41, 10,101,110,100, 10,101,110,100, 44,
814 10, 95, 95,105,110,100,101,120, 32, 61, 32,102,117,110, 99,
815 116,105,111,110, 40, 97, 44, 98, 41, 10,114,101,116,117,114,
816 110, 32,100, 97,116, 97, 91, 98, 93, 10,101,110,100, 10,125,
817 10,115,101,116,109,101,116, 97,116, 97, 98,108,101, 40, 99,
818 111,110,115,116, 44, 32, 99,111,110,115,116, 95,109,116, 41,
819 32
820 };
821 if (luaL_loadbuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code") == LUA_OK)
823 } /* end of embedded lua code */
824
826 return 1;
827}
828/* Open tolua function */
const char * api_intl_N_(lua_State *L, const char *untranslated)
const char * api_intl_PL_(lua_State *L, const char *singular, const char *plural, int n)
const char * api_intl__(lua_State *L, const char *untranslated)
const char * api_intl_Q_(lua_State *L, const char *untranslated)
const char * api_utilities_fc_version(lua_State *L)
int api_utilities_versions_compare(lua_State *L, const char *ver1, const char *ver2)
const char * api_utilities_comparable_version(lua_State *L)
int api_utilities_random(lua_State *L, int min, int max)
void api_utilities_log_base(lua_State *L, int level, const char *message)
const char * api_utilities_name_version(lua_State *L)
const char * api_utilities_version_string(lua_State *L)
void api_utilities_deprecation_warning(lua_State *L, char *method, char *replacement, char *deprecated_since)
#define n
Definition astring.c:77
char * incite_cost
Definition comments.c:75
log_level
Definition log.h:28
@ LOG_ERROR
Definition log.h:30
@ LOG_DEBUG
Definition log.h:34
@ LOG_NORMAL
Definition log.h:32
@ LOG_FATAL
Definition log.h:29
@ LOG_VERBOSE
Definition log.h:33
@ LOG_WARN
Definition log.h:31
static int tolua_common_a_name_version00(lua_State *tolua_S)
static int tolua_common_a__00(lua_State *tolua_S)
static int tolua_common_a_random00(lua_State *tolua_S)
static int tolua_common_a_N_00(lua_State *tolua_S)
static int tolua_common_a_version_string00(lua_State *tolua_S)
TOLUA_API int tolua_common_a_open(lua_State *tolua_S)
static int tolua_common_a_versions_compare00(lua_State *tolua_S)
static void tolua_reg_types(lua_State *tolua_S)
LUALIB_API int luaopen_common_a(lua_State *tolua_S)
static int tolua_common_a_log_deprecation_warning00(lua_State *tolua_S)
int tolua_bnd_takeownership(lua_State *L)
static int tolua_common_a_log_base00(lua_State *tolua_S)
static int tolua_common_a_comparable_version00(lua_State *tolua_S)
static int tolua_common_a_fc_version00(lua_State *tolua_S)
static int tolua_common_a_Q_00(lua_State *tolua_S)
static int tolua_common_a_PL_00(lua_State *tolua_S)