Skip to content

Instantly share code, notes, and snippets.

@kazupon
Created September 25, 2012 06:41
Show Gist options
  • Save kazupon/3780323 to your computer and use it in GitHub Desktop.
Save kazupon/3780323 to your computer and use it in GitHub Desktop.
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()
local debug = require('debug')
p('b:', __file__, __path__)
p(debug.getinfo(1, "Slf"))
return {
add = function (a, b)
return a + b
end
}
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