aboutsummaryrefslogtreecommitdiff
path: root/luaconf.h
diff options
context:
space:
mode:
Diffstat (limited to 'luaconf.h')
-rw-r--r--luaconf.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/luaconf.h b/luaconf.h
index 64565066..f1ca51f5 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: luaconf.h,v 1.268 2018/04/02 13:58:33 roberto Exp roberto $ 2** $Id: luaconf.h,v 1.269 2018/06/15 15:49:28 roberto Exp roberto $
3** Configuration file for Lua 3** Configuration file for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -254,16 +254,20 @@
254#endif /* } */ 254#endif /* } */
255 255
256 256
257/* more often than not the libs go together with the core */ 257/*
258** More often than not the libs go together with the core;
259** Functions from the auxiliary library must be exported,
260** but opening functions do not.
261*/
258#define LUALIB_API LUA_API 262#define LUALIB_API LUA_API
259#define LUAMOD_API LUALIB_API 263#define LUAMOD_API LUAI_FUNC
260 264
261 265
262/* 266/*
263@@ LUAI_FUNC is a mark for all extern functions that are not to be 267@@ LUAI_FUNC is a mark for all extern functions that are not to be
264** exported to outside modules. 268** exported to outside modules.
265@@ LUAI_DDEF and LUAI_DDEC are marks for all extern (const) variables 269@@ LUAI_DDEF and LUAI_DDEC are marks for all extern (const) variables,
266** that are not to be exported to outside modules (LUAI_DDEF for 270** none of which to be exported to outside modules (LUAI_DDEF for
267** definitions and LUAI_DDEC for declarations). 271** definitions and LUAI_DDEC for declarations).
268** CHANGE them if you need to mark them in some special way. Elf/gcc 272** CHANGE them if you need to mark them in some special way. Elf/gcc
269** (versions 3.2 and later) mark them as "hidden" to optimize access 273** (versions 3.2 and later) mark them as "hidden" to optimize access
@@ -280,7 +284,7 @@
280#define LUAI_FUNC extern 284#define LUAI_FUNC extern
281#endif /* } */ 285#endif /* } */
282 286
283#define LUAI_DDEC LUAI_FUNC 287#define LUAI_DDEC(dec) LUAI_FUNC dec
284#define LUAI_DDEF /* empty */ 288#define LUAI_DDEF /* empty */
285 289
286/* }================================================================== */ 290/* }================================================================== */