luaconf.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644
  1. /*
  2. ** $Id: luaconf.h,v 1.199 2014/04/16 18:45:51 roberto Exp roberto $
  3. ** Configuration file for Lua
  4. ** See Copyright Notice in lua.h
  5. */
  6. #ifndef lconfig_h
  7. #define lconfig_h
  8. #include <limits.h>
  9. #include <stddef.h>
  10. /*
  11. ** ==================================================================
  12. ** Search for "@@" to find all configurable definitions.
  13. ** ===================================================================
  14. */
  15. /*
  16. ** ===================================================================
  17. @@ LUA_INT_INT / LUA_INT_LONG / LUA_INT_LONGLONG defines type for
  18. @* Lua integers;
  19. @@ LUA_REAL_FLOAT / LUA_REAL_DOUBLE / LUA_REAL_LONGDOUBLE defines
  20. @* type for Lua floats.
  21. **
  22. ** These definitions set the numeric types for Lua. Lua should work
  23. ** fine with any mix of these previous options.
  24. ** The usual configurations are 64-bit integers and floats (the default)
  25. ** and 32-bit integers and floats (Small Lua, for restricted hardware).
  26. ** =====================================================================
  27. */
  28. #define LUA_INT_LONGLONG
  29. #define LUA_REAL_DOUBLE
  30. /*
  31. @@ LUA_ANSI controls the use of non-ansi features.
  32. ** CHANGE it (define it) if you want Lua to avoid the use of any
  33. ** non-ansi feature or library.
  34. */
  35. #if !defined(LUA_ANSI) && defined(__STRICT_ANSI__)
  36. #define LUA_ANSI
  37. #endif
  38. #if !defined(LUA_ANSI) && defined(_WIN32) && !defined(_WIN32_WCE)
  39. #define LUA_WIN /* enable goodies for regular Windows platforms */
  40. #endif
  41. #if defined(LUA_WIN)
  42. #define LUA_DL_DLL
  43. #define LUA_USE_AFORMAT /* assume 'printf' handles 'aA' specifiers */
  44. #endif
  45. #if defined(LUA_USE_LINUX)
  46. #define LUA_USE_C99
  47. #define LUA_USE_POSIX
  48. #define LUA_USE_DLOPEN /* needs an extra library: -ldl */
  49. #define LUA_USE_READLINE /* needs some extra libraries */
  50. #endif
  51. #if defined(LUA_USE_MACOSX)
  52. #define LUA_USE_C99
  53. #define LUA_USE_POSIX
  54. #define LUA_USE_DLOPEN /* does not need -ldl */
  55. #define LUA_USE_READLINE /* needs an extra library: -lreadline */
  56. #endif
  57. /*
  58. @@ LUA_USE_C99 includes all functionality from C 99.
  59. ** CHANGE it (define it) if your system is compatible.
  60. */
  61. #if defined(LUA_USE_C99)
  62. #define LUA_USE_AFORMAT /* assume 'printf' handles 'aA' specifiers */
  63. #endif
  64. /*
  65. @@ LUA_USE_POSIX includes all functionality listed as X/Open System
  66. @* Interfaces Extension (XSI).
  67. ** CHANGE it (define it) if your system is XSI compatible.
  68. */
  69. #if defined(LUA_USE_POSIX)
  70. #endif
  71. /*
  72. @@ LUA_PATH_DEFAULT is the default path that Lua uses to look for
  73. @* Lua libraries.
  74. @@ LUA_CPATH_DEFAULT is the default path that Lua uses to look for
  75. @* C libraries.
  76. ** CHANGE them if your machine has a non-conventional directory
  77. ** hierarchy or if you want to install your libraries in
  78. ** non-conventional directories.
  79. */
  80. #if defined(_WIN32) /* { */
  81. /*
  82. ** In Windows, any exclamation mark ('!') in the path is replaced by the
  83. ** path of the directory of the executable file of the current process.
  84. */
  85. #define LUA_LDIR "!\\lua\\"
  86. #define LUA_CDIR "!\\"
  87. #define LUA_PATH_DEFAULT \
  88. LUA_LDIR"?.lua;" LUA_LDIR"?\\init.lua;" \
  89. LUA_CDIR"?.lua;" LUA_CDIR"?\\init.lua;" \
  90. ".\\?.lua;" ".\\?\\init.lua"
  91. #define LUA_CPATH_DEFAULT \
  92. LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll;" ".\\?.dll"
  93. #else /* }{ */
  94. #define LUA_VDIR LUA_VERSION_MAJOR "." LUA_VERSION_MINOR "/"
  95. #define LUA_ROOT "/usr/local/"
  96. #define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR
  97. #define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR
  98. #define LUA_PATH_DEFAULT \
  99. LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \
  100. LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua;" \
  101. "./?.lua;" "./?/init.lua"
  102. #define LUA_CPATH_DEFAULT \
  103. LUA_CDIR"?.so;" LUA_CDIR"loadall.so;" "./?.so"
  104. #endif /* } */
  105. /*
  106. @@ LUA_DIRSEP is the directory separator (for submodules).
  107. ** CHANGE it if your machine does not use "/" as the directory separator
  108. ** and is not Windows. (On Windows Lua automatically uses "\".)
  109. */
  110. #if defined(_WIN32)
  111. #define LUA_DIRSEP "\\"
  112. #else
  113. #define LUA_DIRSEP "/"
  114. #endif
  115. /*
  116. @@ LUA_ENV is the name of the variable that holds the current
  117. @@ environment, used to access global names.
  118. ** CHANGE it if you do not like this name.
  119. */
  120. #define LUA_ENV "_ENV"
  121. /*
  122. @@ LUA_API is a mark for all core API functions.
  123. @@ LUALIB_API is a mark for all auxiliary library functions.
  124. @@ LUAMOD_API is a mark for all standard library opening functions.
  125. ** CHANGE them if you need to define those functions in some special way.
  126. ** For instance, if you want to create one Windows DLL with the core and
  127. ** the libraries, you may want to use the following definition (define
  128. ** LUA_BUILD_AS_DLL to get it).
  129. */
  130. #if defined(LUA_BUILD_AS_DLL) /* { */
  131. #if defined(LUA_CORE) || defined(LUA_LIB) /* { */
  132. #define LUA_API __declspec(dllexport)
  133. #else /* }{ */
  134. #define LUA_API __declspec(dllimport)
  135. #endif /* } */
  136. #else /* }{ */
  137. #define LUA_API extern
  138. #endif /* } */
  139. /* more often than not the libs go together with the core */
  140. #define LUALIB_API LUA_API
  141. #define LUAMOD_API LUALIB_API
  142. /*
  143. @@ LUAI_FUNC is a mark for all extern functions that are not to be
  144. @* exported to outside modules.
  145. @@ LUAI_DDEF and LUAI_DDEC are marks for all extern (const) variables
  146. @* that are not to be exported to outside modules (LUAI_DDEF for
  147. @* definitions and LUAI_DDEC for declarations).
  148. ** CHANGE them if you need to mark them in some special way. Elf/gcc
  149. ** (versions 3.2 and later) mark them as "hidden" to optimize access
  150. ** when Lua is compiled as a shared library. Not all elf targets support
  151. ** this attribute. Unfortunately, gcc does not offer a way to check
  152. ** whether the target offers that support, and those without support
  153. ** give a warning about it. To avoid these warnings, change to the
  154. ** default definition.
  155. */
  156. #if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 302) && \
  157. defined(__ELF__) /* { */
  158. #define LUAI_FUNC __attribute__((visibility("hidden"))) extern
  159. #define LUAI_DDEC LUAI_FUNC
  160. #define LUAI_DDEF /* empty */
  161. #else /* }{ */
  162. #define LUAI_FUNC extern
  163. #define LUAI_DDEC extern
  164. #define LUAI_DDEF /* empty */
  165. #endif /* } */
  166. /*
  167. @@ LUA_QL describes how error messages quote program elements.
  168. ** CHANGE it if you want a different appearance.
  169. */
  170. #define LUA_QL(x) "'" x "'"
  171. #define LUA_QS LUA_QL("%s")
  172. /*
  173. @@ LUA_IDSIZE gives the maximum size for the description of the source
  174. @* of a function in debug information.
  175. ** CHANGE it if you want a different size.
  176. */
  177. #define LUA_IDSIZE 60
  178. /*
  179. @@ luai_writestring/luai_writeline define how 'print' prints its results.
  180. ** They are only used in libraries and the stand-alone program. (The #if
  181. ** avoids including 'stdio.h' everywhere.)
  182. */
  183. #if defined(LUA_LIB) || defined(lua_c)
  184. #include <stdio.h>
  185. #define luai_writestring(s,l) fwrite((s), sizeof(char), (l), stdout)
  186. #define luai_writeline() (luai_writestring("\n", 1), fflush(stdout))
  187. #endif
  188. /*
  189. @@ luai_writestringerror defines how to print error messages.
  190. ** (A format string with one argument is enough for Lua...)
  191. */
  192. #define luai_writestringerror(s,p) \
  193. (fprintf(stderr, (s), (p)), fflush(stderr))
  194. /*
  195. @@ LUAI_MAXSHORTLEN is the maximum length for short strings, that is,
  196. ** strings that are internalized. (Cannot be smaller than reserved words
  197. ** or tags for metamethods, as these strings must be internalized;
  198. ** #("function") = 8, #("__newindex") = 10.)
  199. */
  200. #define LUAI_MAXSHORTLEN 40
  201. /*
  202. ** {==================================================================
  203. ** Compatibility with previous versions
  204. ** ===================================================================
  205. */
  206. /*
  207. @@ LUA_COMPAT_ALL controls all compatibility options.
  208. ** You can define it to get all options, or change specific options
  209. ** to fit your specific needs.
  210. */
  211. #if defined(LUA_COMPAT_ALL) /* { */
  212. /*
  213. @@ LUA_COMPAT_BITLIB controls the presence of library 'bit32'.
  214. */
  215. #define LUA_COMPAT_BITLIB
  216. /*
  217. @@ LUA_COMPAT_UNPACK controls the presence of global 'unpack'.
  218. ** You can replace it with 'table.unpack'.
  219. */
  220. #define LUA_COMPAT_UNPACK
  221. /*
  222. @@ LUA_COMPAT_LOADERS controls the presence of table 'package.loaders'.
  223. ** You can replace it with 'package.searchers'.
  224. */
  225. #define LUA_COMPAT_LOADERS
  226. /*
  227. @@ macro 'lua_cpcall' emulates deprecated function lua_cpcall.
  228. ** You can call your C function directly (with light C functions).
  229. */
  230. #define lua_cpcall(L,f,u) \
  231. (lua_pushcfunction(L, (f)), \
  232. lua_pushlightuserdata(L,(u)), \
  233. lua_pcall(L,1,0,0))
  234. /*
  235. @@ LUA_COMPAT_LOG10 defines the function 'log10' in the math library.
  236. ** You can rewrite 'log10(x)' as 'log(x, 10)'.
  237. */
  238. #define LUA_COMPAT_LOG10
  239. /*
  240. @@ LUA_COMPAT_LOADSTRING defines the function 'loadstring' in the base
  241. ** library. You can rewrite 'loadstring(s)' as 'load(s)'.
  242. */
  243. #define LUA_COMPAT_LOADSTRING
  244. /*
  245. @@ LUA_COMPAT_MAXN defines the function 'maxn' in the table library.
  246. */
  247. #define LUA_COMPAT_MAXN
  248. /*
  249. @@ The following macros supply trivial compatibility for some
  250. ** changes in the API. The macros themselves document how to
  251. ** change your code to avoid using them.
  252. */
  253. #define lua_strlen(L,i) lua_rawlen(L, (i))
  254. #define lua_objlen(L,i) lua_rawlen(L, (i))
  255. #define lua_equal(L,idx1,idx2) lua_compare(L,(idx1),(idx2),LUA_OPEQ)
  256. #define lua_lessthan(L,idx1,idx2) lua_compare(L,(idx1),(idx2),LUA_OPLT)
  257. /*
  258. @@ LUA_COMPAT_MODULE controls compatibility with previous
  259. ** module functions 'module' (Lua) and 'luaL_register' (C).
  260. */
  261. #define LUA_COMPAT_MODULE
  262. #endif /* } */
  263. /* }================================================================== */
  264. /*
  265. @@ LUAI_BITSINT defines the number of bits in an int.
  266. ** CHANGE here if Lua cannot automatically detect the number of bits of
  267. ** your machine. Probably you do not need to change this.
  268. */
  269. /* avoid overflows in comparison */
  270. #if INT_MAX-20 < 32760 /* { */
  271. #define LUAI_BITSINT 16
  272. #elif INT_MAX > 2147483640L /* }{ */
  273. /* int has at least 32 bits */
  274. #define LUAI_BITSINT 32
  275. #else /* }{ */
  276. #error "you must define LUA_BITSINT with number of bits in an integer"
  277. #endif /* } */
  278. /*
  279. @@ LUA_INT32 is an signed integer with exactly 32 bits.
  280. @@ LUAI_UMEM is an unsigned integer big enough to count the total
  281. @* memory used by Lua.
  282. @@ LUAI_MEM is a signed integer big enough to count the total memory
  283. @* used by Lua.
  284. ** CHANGE here if for some weird reason the default definitions are not
  285. ** good enough for your machine. Probably you do not need to change
  286. ** this.
  287. */
  288. #if LUAI_BITSINT >= 32 /* { */
  289. #define LUA_INT32 int
  290. #define LUAI_UMEM size_t
  291. #define LUAI_MEM ptrdiff_t
  292. #else /* }{ */
  293. /* 16-bit ints */
  294. #define LUA_INT32 long
  295. #define LUAI_UMEM unsigned long
  296. #define LUAI_MEM long
  297. #endif /* } */
  298. /*
  299. @@ LUAI_MAXSTACK limits the size of the Lua stack.
  300. ** CHANGE it if you need a different limit. This limit is arbitrary;
  301. ** its only purpose is to stop Lua from consuming unlimited stack
  302. ** space (and to reserve some numbers for pseudo-indices).
  303. */
  304. #if LUAI_BITSINT >= 32
  305. #define LUAI_MAXSTACK 1000000
  306. #else
  307. #define LUAI_MAXSTACK 15000
  308. #endif
  309. /* reserve some space for error handling */
  310. #define LUAI_FIRSTPSEUDOIDX (-LUAI_MAXSTACK - 1000)
  311. /*
  312. @@ LUAL_BUFFERSIZE is the buffer size used by the lauxlib buffer system.
  313. ** CHANGE it if it uses too much C-stack space.
  314. */
  315. #define LUAL_BUFFERSIZE BUFSIZ
  316. /*
  317. ** {==================================================================
  318. ** Configuration for Numbers.
  319. ** Change these definitions if no predefined LUA_REAL_* / LUA_INT_*
  320. ** satisfy your needs.
  321. ** ===================================================================
  322. */
  323. /*
  324. @@ LUA_NUMBER is the floating-point type used by Lua.
  325. **
  326. @@ LUAI_UACNUMBER is the result of an 'usual argument conversion'
  327. @* over a floating number.
  328. **
  329. @@ LUA_NUMBER_FRMLEN is the length modifier for writing floats.
  330. @@ LUA_NUMBER_SCAN is the format for reading floats.
  331. @@ LUA_NUMBER_FMT is the format for writing floats.
  332. @@ lua_number2str converts a float to a string.
  333. **
  334. @@ l_mathop allows the addition of an 'l' or 'f' to all math operations
  335. **
  336. @@ lua_str2number converts a decimal numeric string to a number.
  337. */
  338. #if defined(LUA_REAL_FLOAT) /* { single float */
  339. #define LUA_NUMBER float
  340. #define LUAI_UACNUMBER double
  341. #define LUA_NUMBER_FRMLEN ""
  342. #define LUA_NUMBER_SCAN "%f"
  343. #define LUA_NUMBER_FMT "%.7g"
  344. #define l_mathop(op) op##f
  345. #define lua_str2number(s,p) strtof((s), (p))
  346. #elif defined(LUA_REAL_LONGDOUBLE) /* }{ long double */
  347. #define LUA_NUMBER long double
  348. #define LUAI_UACNUMBER long double
  349. #define LUA_NUMBER_FRMLEN "L"
  350. #define LUA_NUMBER_SCAN "%Lf"
  351. #define LUA_NUMBER_FMT "%.19Lg"
  352. #define l_mathop(op) op##l
  353. #define lua_str2number(s,p) strtold((s), (p))
  354. #elif defined(LUA_REAL_DOUBLE) /* }{ double */
  355. #define LUA_NUMBER double
  356. #define LUAI_UACNUMBER double
  357. #define LUA_NUMBER_FRMLEN ""
  358. #define LUA_NUMBER_SCAN "%lf"
  359. #define LUA_NUMBER_FMT "%.14g"
  360. #define l_mathop(op) op
  361. #define lua_str2number(s,p) strtod((s), (p))
  362. #else /* }{ */
  363. #error "numeric real type not defined"
  364. #endif /* } */
  365. #if defined(LUA_ANSI)
  366. /* C89 does not support 'opf' variants for math functions */
  367. #undef l_mathop
  368. #define l_mathop(op) (lua_Number)op
  369. #endif
  370. #if defined(LUA_ANSI) || defined(_WIN32)
  371. /* C89 and Windows do not support 'strtof'... */
  372. #undef lua_str2number
  373. #define lua_str2number(s,p) ((lua_Number)strtod((s), (p)))
  374. #endif
  375. #define l_floor(x) (l_mathop(floor)(x))
  376. #define lua_number2str(s,n) sprintf((s), LUA_NUMBER_FMT, (n))
  377. /*
  378. @@ The luai_num* macros define the primitive operations over numbers.
  379. @* They should work for any size of floating numbers.
  380. */
  381. /* the following operations need the math library */
  382. #if defined(lobject_c) || defined(lvm_c)
  383. #include <math.h>
  384. #define luai_nummod(L,a,b,m) \
  385. { (m) = l_mathop(fmod)(a,b); if ((m) != 0 && (a)*(b) < 0) (m) += (b); }
  386. #define luai_numpow(L,a,b) ((void)L, l_mathop(pow)(a,b))
  387. #endif
  388. /* these are quite standard operations */
  389. #if defined(LUA_CORE)
  390. #define luai_numadd(L,a,b) ((a)+(b))
  391. #define luai_numsub(L,a,b) ((a)-(b))
  392. #define luai_nummul(L,a,b) ((a)*(b))
  393. #define luai_numdiv(L,a,b) ((a)/(b))
  394. #define luai_numunm(L,a) (-(a))
  395. #define luai_numeq(a,b) ((a)==(b))
  396. #define luai_numlt(a,b) ((a)<(b))
  397. #define luai_numle(a,b) ((a)<=(b))
  398. #define luai_numisnan(a) (!luai_numeq((a), (a)))
  399. #endif
  400. /*
  401. ** The following macro checks whether an operation is not safe to be
  402. ** performed by the constant folder. It should result in zero only if
  403. ** the operation is safe.
  404. */
  405. #define luai_numinvalidop(op,a,b) 0
  406. /*
  407. @@ LUA_INTEGER is the integer type used by Lua.
  408. **
  409. @@ LUA_UNSIGNED is the unsigned version of LUA_INTEGER.
  410. **
  411. @@ LUAI_UACINT is the result of an 'usual argument conversion'
  412. @* over a lUA_INTEGER.
  413. @@ LUA_INTEGER_FRMLEN is the length modifier for reading/writing integers.
  414. @@ LUA_INTEGER_SCAN is the format for reading integers.
  415. @@ LUA_INTEGER_FMT is the format for writing integers.
  416. @@ LUA_MAXINTEGER is the maximum value for a LUA_INTEGER.
  417. @@ LUA_MININTEGER is the minimum value for a LUA_INTEGER.
  418. @@ LUA_MAXUNSIGNED is the maximum value for a LUA_UNSIGNED.
  419. @@ lua_integer2str converts an integer to a string.
  420. */
  421. /* The following definitions are good for most cases here */
  422. #define LUA_INTEGER_SCAN "%" LUA_INTEGER_FRMLEN "d"
  423. #define LUA_INTEGER_FMT "%" LUA_INTEGER_FRMLEN "d"
  424. #define lua_integer2str(s,n) sprintf((s), LUA_INTEGER_FMT, (n))
  425. #define LUAI_UACINT LUA_INTEGER
  426. /*
  427. ** use LUAI_UACINT here to avoid problems with promotions (which
  428. ** can turn a comparison between unsigneds into a signed comparison)
  429. */
  430. #define LUA_UNSIGNED unsigned LUAI_UACINT
  431. /* now the variable definitions */
  432. #if defined(LUA_INT_INT) /* { int */
  433. #define LUA_INTEGER int
  434. #define LUA_INTEGER_FRMLEN ""
  435. #define LUA_MAXUNSIGNED UINT_MAX
  436. #define LUA_MAXINTEGER INT_MAX
  437. #define LUA_MININTEGER INT_MIN
  438. #elif defined(LUA_INT_LONG) /* }{ long */
  439. #define LUA_INTEGER long
  440. #define LUA_INTEGER_FRMLEN "l"
  441. #define LUA_MAXUNSIGNED ULONG_MAX
  442. #define LUA_MAXINTEGER LONG_MAX
  443. #define LUA_MININTEGER LONG_MIN
  444. #elif defined(LUA_INT_LONGLONG) /* }{ long long */
  445. #if defined(_WIN32)
  446. #define LUA_INTEGER __int64
  447. #define LUA_INTEGER_FRMLEN "I64"
  448. #define LUA_MAXUNSIGNED _UI64_MAX
  449. #define LUA_MAXINTEGER _I64_MAX
  450. #define LUA_MININTEGER _I64_MIN
  451. #else
  452. #define LUA_INTEGER long long
  453. #define LUA_INTEGER_FRMLEN "ll"
  454. #define LUA_MAXUNSIGNED ULLONG_MAX
  455. #define LUA_MAXINTEGER LLONG_MAX
  456. #define LUA_MININTEGER LLONG_MIN
  457. #endif
  458. #elif defined(LUA_INT_SHORT) /* }{ short int */
  459. /* this option is for tests only; it is not fully functional */
  460. #define LUA_INTEGER short int
  461. #define LUA_INTEGER_FRMLEN ""
  462. #define LUA_MAXUNSIGNED ((LUA_UNSIGNED)USHRT_MAX)
  463. #define LUA_MAXINTEGER SHRT_MAX
  464. #define LUA_MININTEGER SHRT_MIN
  465. #undef LUAI_UACINT
  466. #define LUAI_UACINT int
  467. #undef LUA_INTEGER_SCAN
  468. #define LUA_INTEGER_SCAN "%hd"
  469. #undef LUAI_MAXSTACK
  470. #define LUAI_MAXSTACK 15000
  471. #define l_castS2U(x) ((LUA_UNSIGNED)(unsigned short)(x))
  472. #else /* }{ */
  473. #error "numeric integer type not defined"
  474. #endif /* } */
  475. /* }================================================================== */
  476. /* =================================================================== */
  477. /*
  478. ** Local configuration. You can use this space to add your redefinitions
  479. ** without modifying the main part of the file.
  480. */
  481. #endif