diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-11-13 13:58:46 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-11-13 13:58:46 -0200 |
commit | d40cd315f50538e9dbd4362a4763c01527f4eb3a (patch) | |
tree | 319a6390c31c491facb763cbb9956eb5d50753c1 /luaconf.h | |
parent | 8cb84210ab95e882c01363a6794508ec923ade90 (diff) | |
download | lua-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 /* } */ |