Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compile/luajit/make.lua
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ lm:executable("luajit/lua") {
"lj_*.c",
"lib_*.c",
"!lj_str_hash.c",
"../../../../" .. lm.bindir .. "/lj_vm.obj",
lm.bindir .. "/lj_vm.obj",
},
includes = {
".",
Expand Down
9 changes: 9 additions & 0 deletions extension/script/debugger.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
local selfsource = ...

if not selfsource then
local source = debug.getinfo(1, "S").source
if source:sub(1, 1) == "@" then
local filepath = source:sub(2)
selfsource = filepath
end
end

local root = selfsource
:match "(.+)[/][^/]+$"
:match "(.+)[/][^/]+$"
Expand Down
Loading