Created
September 25, 2012 06:41
-
-
Save kazupon/3780323 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 debug = require('debug') | |
p('a:', __file__, __path__) | |
p(debug.getinfo(1, "Slf")) | |
local b = require('./b') | |
p('add:', b.add(1, 1)) | |
lev.exit() |
This file contains hidden or 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 debug = require('debug') | |
p('b:', __file__, __path__) | |
p(debug.getinfo(1, "Slf")) | |
return { | |
add = function (a, b) | |
return a + b | |
end | |
} |
This file contains hidden or 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
RetinaMBP:3780323 kazupon$ ~/Projects/opensource/lev/build/lev a.lua | |
*lev core started: 52313 | |
"a:" "a.lua" "." | |
{ | |
linedefined = 0, | |
currentline = 4, | |
lastlinedefined = 11, | |
source = "@a.lua", | |
what = "main", | |
func = function: 0x041d42e8, | |
short_src = "a.lua" | |
} | |
"b:" ".///b.lua" "." | |
{ | |
linedefined = 0, | |
currentline = 4, | |
lastlinedefined = 11, | |
source = "@.///b.lua", | |
what = "main", | |
func = function: 0x041d7aa8, | |
short_src = ".///b.lua" | |
} | |
"add:" 2 | |
*lev: a core has exited with status 0, signal 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment