Dis no saur*
diemartin
joined 2 years ago
Har har
Edited
Thank you kind stranger <3
Joke's on you! I hate myself too
TBH I don't know lol
I just grabbed this meme
...and remixed it
if debug.getinfo(1).what == "main" then
-- ...
end
Not that you'll ever use it. No, seriously.
Edit: actually, they are not quite equivalent. This code just checks whether we are outside any function, not necessarily in the main file (i.e. not in a module). I don't think there's an equivalent to Python's __name__
in stock Lua.
view more: next ›
Sad reaccs only