diff options
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 | */ |