Mercurial > vim
comparison src/libvterm/src/pen.c @ 11856:1c0c6918926f v8.0.0808
patch 8.0.0808: cannot build with terminal feature and DEBUG defined
commit https://github.com/vim/vim/commit/d507a685ad9cd270e5afc3bd4aa6a80ddb0d8802
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jul 29 22:41:18 2017 +0200
patch 8.0.0808: cannot build with terminal feature and DEBUG defined
Problem: Cannot build with terminal feature and DEBUG defined. (Christian
Brabandt)
Solution: Use DEBUG_LOG3().
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 29 Jul 2017 22:45:04 +0200 |
parents | 4dfebc1b2674 |
children | fcb11cfca8b3 |
comparison
equal
deleted
inserted
replaced
11855:ca40608849fb | 11856:1c0c6918926f |
---|---|
104 | 104 |
105 static void setpenattr(VTermState *state, VTermAttr attr, VTermValueType type UNUSED, VTermValue *val) | 105 static void setpenattr(VTermState *state, VTermAttr attr, VTermValueType type UNUSED, VTermValue *val) |
106 { | 106 { |
107 #ifdef DEBUG | 107 #ifdef DEBUG |
108 if(type != vterm_get_attr_type(attr)) { | 108 if(type != vterm_get_attr_type(attr)) { |
109 DEBUG_LOG("Cannot set attr %d as it has type %d, not type %d\n", | 109 DEBUG_LOG3("Cannot set attr %d as it has type %d, not type %d\n", |
110 attr, vterm_get_attr_type(attr), type); | 110 attr, vterm_get_attr_type(attr), type); |
111 return; | 111 return; |
112 } | 112 } |
113 #endif | 113 #endif |
114 if(state->callbacks && state->callbacks->setpenattr) | 114 if(state->callbacks && state->callbacks->setpenattr) |