1,13 → 1,11 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
;; ;; |
;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;; |
;; Copyright (C) KolibriOS team 2004-2019. All rights reserved. ;; |
;; Distributed under terms of the GNU General Public License ;; |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
$Revision$ |
|
_esp equ esp |
|
; |
; Formatted Debug Output (FDO) |
; Copyright (c) 2005-2006, mike.dld |
22,6 → 20,12 |
; __DEBUG__ equ 1 |
; __DEBUG_LEVEL__ equ 5 |
|
_esp equ esp |
|
macro put_board { |
call sys_msg_board |
} |
|
macro debug_func name { |
if used name |
name@of@func equ name |
243,7 → 247,7 |
pushad |
movzx ecx, al |
mov ebx, 1 |
call sys_msg_board |
put_board |
popad |
ret |
debug_endf |
257,7 → 261,7 |
movzx ecx, byte[edx] |
or cl, cl |
jz .l2 |
call sys_msg_board |
put_board |
inc edx |
jmp .l1 |
.l2: |
391,6 → 395,17 |
end if |
} |
|
macro DEBUGFG _level, _group, _format, [_arg] { |
common |
if _group eqtype |
DEBUGF _level, _format,_arg |
else |
if _level >= _group |
DEBUGF 999, _format,_arg |
end if |
end if |
} |
|
macro __include_debug_strings dummy,[_id,_fmt,_len] { |
common |
local c1,a1,a2 |