aboutsummaryrefslogtreecommitdiff
path: root/lib/WinRpMalloc/src/pch.h
blob: d8c240921facb80ea7aad069b74c8ef929acd37c (plain)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
* Copyright (c) 2022 Vaughn Nugent
* 
* Library: VNLib
* Package: WinRpMalloc
* File: pch.h 
*
* pch.h is part of WinRpMalloc which is part of the larger 
* VNLib collection of libraries and utilities.
*
* WinRpMalloc is free software: you can redistribute it and/or modify 
* it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 2 of the License,
* or (at your option) any later version.
*
* WinRpMalloc is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License 
* along with WinRpMalloc. If not, see http://www.gnu.org/licenses/.
*/

// pch.h: This is a precompiled header file.
// Files listed below are compiled only once, improving build performance for future builds.
// This also affects IntelliSense performance, including code completion and many code browsing features.
// However, files listed here are ALL re-compiled if any one of them is updated between builds.
// Do not add files here that you will be updating frequently as this negates the performance advantage.

#ifndef PCH_H
#define PCH_H

#include "framework.h"
// add headers that you want to pre-compile here

//Using firstclass heaps, define 
#define RPMALLOC_FIRST_CLASS_HEAPS 1

/*
* Enabling adaptive thread cache because I am not using thread initilaizations
*/
#define ENABLE_ADAPTIVE_THREAD_CACHE 1

#ifdef DEBUG

ENABLE_VALIDATE_ARGS 1
ENABLE_ASSERTS 1
ENABLE_STATISTICS 1

#endif // DEBUG

#include "rpmalloc.h"

#endif //PCH_H