File: lcc.h

package info (click to toggle)
wine 0.0.20000109-3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 22,652 kB
  • ctags: 59,973
  • sloc: ansic: 342,054; perl: 3,697; yacc: 3,059; tcl: 2,647; makefile: 2,466; lex: 1,494; sh: 394
file content (39 lines) | stat: -rw-r--r-- 917 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
 * lcc.h
 *
 * Copyright 1999 by Marcel Baur <mbaur@g26.ethz.ch>
 * To be distributed under the Wine license
 *
 * This file is only required when compiling Notepad using LCC-WIN32
 */

#ifdef LCC

   #include <assert.h>
   #include "shellapi.h"

   #define HANDLE HANDLE
   #define INVALID_HANDLE_VALUE INVALID_HANDLE_VALUE

   #define WINE_RELEASE_INFO "Compiled using LCC"
   #define OIC_WINEICON 0

   #ifndef LCC_HASASSERT
    /* prevent multiple inclusion of assert methods */

     int _assertfail(char *__msg, char *__cond, char *__file, int __line) {
  
       CHAR szMessage[255];

       strcat(szMessage, "Assert failure ");
       strcat(szMessage, __msg);
       strcat(szMessage, "\n");
       strcat(szMessage, "in line ");
       strcat(szMessage, "of file ");
       strcat(szMessage, __line);

       MessageBox(0, szMessage, "ERROR: ASSERT FAILURE", MB_ICONEXCLAMATION);
    }
  #endif

#endif