aboutsummaryrefslogtreecommitdiff
path: root/luaconf.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-11-13 13:58:46 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-11-13 13:58:46 -0200
commitd40cd315f50538e9dbd4362a4763c01527f4eb3a (patch)
tree319a6390c31c491facb763cbb9956eb5d50753c1 /luaconf.h
parent8cb84210ab95e882c01363a6794508ec923ade90 (diff)
downloadlua-d40cd315f50538e9dbd4362a4763c01527f4eb3a.tar.gz
lua-d40cd315f50538e9dbd4362a4763c01527f4eb3a.tar.bz2
lua-d40cd315f50538e9dbd4362a4763c01527f4eb3a.zip
Visibility of non-API functions changed to "internal"
The visibility for functions marked as LUAI_FUNC was changed from "hidden" to "internal". These functions cannot be called from outside the Lua kernel, and "internal" visibility offers more chances for optimizations.
Diffstat (limited to 'luaconf.h')
-rw-r--r--luaconf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/luaconf.h b/luaconf.h
index 126257dc..ff708513 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -277,7 +277,7 @@
277*/ 277*/
278#if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 302) && \ 278#if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 302) && \
279 defined(__ELF__) /* { */ 279 defined(__ELF__) /* { */
280#define LUAI_FUNC __attribute__((visibility("hidden"))) extern 280#define LUAI_FUNC __attribute__((visibility("internal"))) extern
281#else /* }{ */ 281#else /* }{ */
282#define LUAI_FUNC extern 282#define LUAI_FUNC extern
283#endif /* } */ 283#endif /* } */