diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-05-15 13:46:38 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-05-15 13:46:38 -0300 |
commit | 09f3c2372f5dbeaec9f50614a26c1b5761726a88 (patch) | |
tree | 83469dd02dba1c59ead0eb0cba3a35bd39ec899d /luaconf.h | |
parent | c197885cb00b85251c35cffdc4057efaee2d7a88 (diff) | |
download | lua-09f3c2372f5dbeaec9f50614a26c1b5761726a88.tar.gz lua-09f3c2372f5dbeaec9f50614a26c1b5761726a88.tar.bz2 lua-09f3c2372f5dbeaec9f50614a26c1b5761726a88.zip |
Option '-l' discards version sufix from file name
Like 'require', the command-line option '-l' discards an optional
version suffix (everything after an hyphen) from a file name when
creating the module name.
Diffstat (limited to 'luaconf.h')
-rw-r--r-- | luaconf.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -257,6 +257,15 @@ | |||
257 | 257 | ||
258 | #endif | 258 | #endif |
259 | 259 | ||
260 | |||
261 | /* | ||
262 | ** LUA_IGMARK is a mark to ignore all after it when building the | ||
263 | ** module name (e.g., used to build the luaopen_ function name). | ||
264 | ** Typically, the sufix after the mark is the module version, | ||
265 | ** as in "mod-v1.2.so". | ||
266 | */ | ||
267 | #define LUA_IGMARK "-" | ||
268 | |||
260 | /* }================================================================== */ | 269 | /* }================================================================== */ |
261 | 270 | ||
262 | 271 | ||