Created
December 11, 2013 07:01
-
-
Save fakestarbaby/7906141 to your computer and use it in GitHub Desktop.
Lua で実行中のファイル名称と行番号を取得する ref: http://qiita.com/fakestarbaby/items/385c8a8a8b8f0db6d57c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local debugInfo = debug.getinfo(1) | |
local fileName = debugInfo.source:match("[^/]*$") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local debugInfo = debug.getinfo(1) | |
local currentLine = debugInfo.currentline |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment