Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
131961d4
Commit
131961d4
authored
Apr 23, 2001
by
Francois Gouget
Committed by
Alexandre Julliard
Apr 23, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Provide limited support for the msvcrt debug API.
parent
3fafafa9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
91 additions
and
0 deletions
+91
-0
crtdbg.h
include/msvcrt/crtdbg.h
+91
-0
No files found.
include/msvcrt/crtdbg.h
0 → 100644
View file @
131961d4
/*
* Debug API
*
* Copyright 2001 Francois Gouget.
*/
#ifndef __WINE_CRTDBG_H_
#define __WINE_CRTDBG_H_
/* The debug API is not implemented in Winelib.
* Redirect everything to the regular APIs.
*/
#define _CRT_WARN 0
#define _CRT_ERROR 1
#define _CRT_ASSERT 2
#define _CRT_ERRCNT 3
#define _FREE_BLOCK 0
#define _NORMAL_BLOCK 1
#define _CRT_BLOCK 2
#define _IGNORE_BLOCK 3
#define _CLIENT_BLOCK 4
#define _MAX_BLOCKS 5
typedef
struct
_CrtMemState
{
struct
_CrtMemBlockHeader
*
pBlockHeader
;
unsigned
long
lCounts
[
_MAX_BLOCKS
];
unsigned
long
lSizes
[
_MAX_BLOCKS
];
unsigned
long
lHighWaterCount
;
unsigned
long
lTotalCount
;
}
_CrtMemState
;
#ifndef _DEBUG
#define _ASSERT(expr) (0)
#define _ASSERTE(expr) (0)
#define _CrtDbgBreak() (0)
#else
/* _DEBUG */
#include <assert.h>
#define _ASSERT(expr) assert(expr)
#define _ASSERTE(expr) assert(expr)
#if defined(__GNUC__) && defined(__i386__)
#define _CrtDbgBreak() __asm__ ("\tint $0x3\n")
#else
#define _CrtDbgBreak() (0)
#endif
#endif
/* _DEBUG */
#define _CrtCheckMemory() (1)
#define _CrtDbgReport(...) (0)
#define _CrtDoForAllClientObjects(f,c) (0)
#define _CrtDumpMemoryLeaks() (0)
#define _CrtIsMemoryBlock(p,s,r,f,l) (1)
#define _CrtIsValidHeapPointer(p) (1)
#define _CrtIsValidPointer(p,s,a) (1)
#define _CrtMemCheckpoint(s) (0)
#define _CrtMemDifference(s1,s2,s3) (0)
#define _CrtMemDumpAllObjectsSince(s) (0)
#define _CrtMemDumpStatistics(s) (0)
#define _CrtSetAllocHook(f) (0)
#define _CrtSetBreakAlloc(a) (0)
#define _CrtSetDbgFlag(f) (0)
#define _CrtSetDumpClient(f) (0)
#define _CrtSetReportMode(t,m) (0)
#define _RPT0(t,m)
#define _RPT1(t,m,p1)
#define _RPT2(t,m,p1,p2)
#define _RPT3(t,m,p1,p2,p3)
#define _RPT4(t,m,p1,p2,p3,p4)
#define _RPTF0(t,m)
#define _RPTF1(t,m,p1)
#define _RPTF2(t,m,p1,p2)
#define _RPTF3(t,m,p1,p2,p3)
#define _RPTF4(t,m,p1,p2,p3,p4)
#define _malloc_dbg(s,t,f,l) malloc(s)
#define _calloc_dbg(c,s,t,f,l) calloc(c,s)
#define _expand_dbg(p,s,t,f,l) _expand(p,s)
#define _free_dbg(p,t) free(p)
#define _realloc_dbg(p,s,t,f,l) realloc(p,s)
#endif
/* __WINE_CRTDBG_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment