NetSurf
frontends
windows
windbg.h
Go to the documentation of this file.
1
/*
2
* Copyright 2010 Vincent Sanders <vince@netsurf-browser.org>
3
*
4
* This file is part of NetSurf, http://www.netsurf-browser.org/
5
*
6
* NetSurf is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; version 2 of the License.
9
*
10
* NetSurf is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
#ifndef NETSURF_WINDOWS_WINDBG_H
20
#define NETSURF_WINDOWS_WINDBG_H
21
22
#include "
utils/log.h
"
23
24
const
char
*
msg_num_to_name
(
int
msg);
25
void
win_perror
(
const
char
*lpszFunction);
26
27
/**
28
* log windows message
29
*
30
* log a windows message with symbols converted to human redable
31
*/
32
#define LOG_WIN_MSG(h, m, w, l) \
33
if (((m) != WM_SETCURSOR) && \
34
((m) != WM_MOUSEMOVE) && \
35
((m) != WM_NCHITTEST) && \
36
((m) != WM_ENTERIDLE)) \
37
NSLOG(netsurf, DEBUG, \
38
"%s, hwnd %p, w 0x%x, l 0x%Ix"
, \
39
msg_num_to_name(m), h, w, l)
40
41
#endif
log.h
msg_num_to_name
const char * msg_num_to_name(int msg)
Definition:
windbg.c:24
win_perror
void win_perror(const char *lpszFunction)
Definition:
windbg.c:633
Generated on Wed Dec 18 2024 10:31:35 for NetSurf by
1.9.4