diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-04-25 16:24:10 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-04-25 16:24:10 -0300 |
commit | 8718fda9b24fa148ffe1a06fb36a7aa2ed628bdc (patch) | |
tree | 4ad0b914b84005b706fb6c9af302132d789b133a /luaconf.h | |
parent | 8c3c3e769195facf6b8c061f4fab1d86e6606be8 (diff) | |
download | lua-8718fda9b24fa148ffe1a06fb36a7aa2ed628bdc.tar.gz lua-8718fda9b24fa148ffe1a06fb36a7aa2ed628bdc.tar.bz2 lua-8718fda9b24fa148ffe1a06fb36a7aa2ed628bdc.zip |
added LUAI_FUNC to functions not in the API
Diffstat (limited to 'luaconf.h')
-rw-r--r-- | luaconf.h | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: luaconf.h,v 1.42 2005/04/07 13:09:07 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.43 2005/04/07 13:52:45 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 | */ |
@@ -118,6 +118,20 @@ | |||
118 | 118 | ||
119 | 119 | ||
120 | /* | 120 | /* |
121 | @@ LUAI_FUNC is a mark for all extern functions that are not to be | ||
122 | @* exported to outside modules. | ||
123 | ** CHANGE it if you need to mark them in some special way. Gcc mark | ||
124 | ** them as "hidden" to optimize their call when Lua is compiled as a | ||
125 | ** shared library. | ||
126 | */ | ||
127 | #if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 302) | ||
128 | #define LUAI_FUNC __attribute__((visibility("hidden"))) | ||
129 | #else | ||
130 | #define LUAI_FUNC extern | ||
131 | #endif | ||
132 | |||
133 | |||
134 | /* | ||
121 | @@ lua_assert describes the internal assertions in Lua. | 135 | @@ lua_assert describes the internal assertions in Lua. |
122 | ** CHANGE that only if you need to debug Lua. | 136 | ** CHANGE that only if you need to debug Lua. |
123 | */ | 137 | */ |