lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Auto-detecting whether script is stand-alone or module?
From
: František Fuka <fuka@
...
>
Date
: Fri, 4 Jan 2013 01:47:51 +0100
Hello,
is there a way for a piece of Lua code to detect if it has been called as a standalone script from command line, or loaded during require() or dofile()?
--
-- Frantisek Fuka
(yes, that IS my real name)
-- My
Google+ profile
-- Personal
Homepage
-- Jabber/GoogleTalk ID:
fuka@fuxoft.cz
Follow-Ups
:
Re: Auto-detecting whether script is stand-alone or module?
,
Paul K
Re: Auto-detecting whether script is stand-alone or module?
,
Patrick
Prev by Date:
Re: CGILua vis-a-vis Javascript
Next by Date:
Re: [ANN] ltn12ce - An all-in-one compression and encryption library for Lua
Previous by thread:
[PATCH] luasocket-2.0.2 rockspec extenstion for mingw32 builds
Next by thread:
Re: Auto-detecting whether script is stand-alone or module?
Index(es):
Date
Thread