aboutsummaryrefslogtreecommitdiff
path: root/luaconf.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-05-15 13:46:38 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-05-15 13:46:38 -0300
commit09f3c2372f5dbeaec9f50614a26c1b5761726a88 (patch)
tree83469dd02dba1c59ead0eb0cba3a35bd39ec899d /luaconf.h
parentc197885cb00b85251c35cffdc4057efaee2d7a88 (diff)
downloadlua-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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/luaconf.h b/luaconf.h
index 137103ed..acebe29c 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -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