Merge branch 'add-framework-for-taking-path-from-global-variables' into add-mdbg-support
This commit is contained in:
commit
57f86ef3ac
@ -83,3 +83,14 @@ function! s:argEscape(arg)
|
|||||||
return '"'.escape(a:arg,'"').'"'
|
return '"'.escape(a:arg,'"').'"'
|
||||||
end
|
end
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
"Return a tool's(usually debugger) full path, or revert to default if that
|
||||||
|
"path is not defined
|
||||||
|
function! vebugger#util#getToolFullPath(toolName,default)
|
||||||
|
let l:optionName='vebugger_path_'.a:toolName
|
||||||
|
if exists('g:'.l:optionName)
|
||||||
|
return g:[l:optionName]
|
||||||
|
else
|
||||||
|
return a:default
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
Loading…
Reference in New Issue
Block a user