Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make reporting in s:library_call() user friendly
  • Loading branch information
xolox committed May 21, 2013
1 parent 705a503 commit 1b27cc0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions autoload/xolox/shell.vim
@@ -1,9 +1,9 @@
" Vim auto-load script
" Author: Peter Odding <peter@peterodding.com>
" Last Change: May 20, 2013
" Last Change: May 21, 2013
" URL: http://peterodding.com/code/vim/shell/

let g:xolox#shell#version = '0.12.5'
let g:xolox#shell#version = '0.12.6'

if !exists('s:fullscreen_enabled')
let s:enoimpl = "%s() hasn't been implemented on your platform! %s"
Expand Down Expand Up @@ -353,7 +353,8 @@ if xolox#misc#os#is_win()
function! s:library_call(fn, arg)
let starttime = xolox#misc#timer#start()
let result = libcall(s:library, a:fn, a:arg)
call xolox#misc#timer#stop("shell.vim %s: Called %s:%s, returning %s in %s", g:xolox#shell#version, s:library, a:fn, result, starttime)
let friendly_result = empty(result) ? '(empty string)' : printf('string %s', string(result))
call xolox#misc#timer#stop("shell.vim %s: Called function %s() in DLL %s, returning %s in %s.", g:xolox#shell#version, a:fn, s:library, friendly_result, starttime)
return result
endfunction

Expand Down

0 comments on commit 1b27cc0

Please sign in to comment.