/[winpt]/trunk/Include/wptErrors.h
ViewVC logotype

Diff of /trunk/Include/wptErrors.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4 by twoaday, Sun Feb 6 11:11:40 2005 UTC revision 33 by twoaday, Tue Oct 25 07:46:20 2005 UTC
# Line 21  Line 21 
21  #ifndef WPT_ERRORS_H  #ifndef WPT_ERRORS_H
22  #define WPT_ERRORS_H  #define WPT_ERRORS_H
23    
24    #define w32_errno ((int)GetLastError ())
25    
26  #define DEBUG(MSG)   debug   (MSG, __FILE__, __LINE__)  #define DEBUG(MSG)   debug   (MSG, __FILE__, __LINE__)
27  #define DEBUG_F(MSG) debug_f (MSG, __FILE__, __LINE__)  #define DEBUG_F(MSG) debug_f (MSG, __FILE__, __LINE__)
28                    
29    /* Error constants. */
30  enum {  enum winpt_err_t {
31      WPTERR_GENERAL        = 1,      WPTERR_GENERAL        = 1,
32      WPTERR_FILE_OPEN      = 2,      WPTERR_FILE_OPEN      = 2,
33      WPTERR_FILE_CREAT     = 3,      WPTERR_FILE_CREAT     = 3,
# Line 70  enum { Line 72  enum {
72      WPTERR_CDISK_QUERY    = 206,      WPTERR_CDISK_QUERY    = 206,
73  };  };
74    
75    void debug_end (void);
76  const char * winpt_strerror (int errid);  const char * winpt_strerror (int errid);
77  void winpt_errmsg (const char * name, int is_file);  void winpt_errmsg (const char * name, int is_file);
78  void winpt_debug_msg (void);  void winpt_debug_msg (void);
79  void debug_box (const char * msg, const char * file, int line);  void debug_box (const char * msg, const char * file, int line);
80  void debug_f (const char * msg, const char * file, int line);  void debug_f (const char * msg, const char * file, int line);
81  void log_f (const char * format, ...);  void log_debug (const char * format, ...);
82  int log_box (const char * title, int style, const char * format, ...);  int log_box (const char * title, int style, const char * format, ...);
83    
84  /*-- wptW32API.cpp --*/  /*-- wptW32API.cpp --*/
# Line 83  int msg_box (HWND hwnd, const char * tex Line 86  int msg_box (HWND hwnd, const char * tex
86  int show_msg (HWND hWnd, int millis, LPCTSTR string);  int show_msg (HWND hWnd, int millis, LPCTSTR string);
87  #define status_box(hwnd, text, title) msg_box (hwnd, text, title, MB_OK)  #define status_box(hwnd, text, title) msg_box (hwnd, text, title, MB_OK)
88    
 #endif /* WPT_ERRORS_H */  
89    #endif /* WPT_ERRORS_H */

Legend:
Removed from v.4  
changed lines
  Added in v.33

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26