81 lines
3.2 KiB
C++
81 lines
3.2 KiB
C++
/*
|
|
Nazara Engine - Core module
|
|
|
|
Copyright (C) 2013 Jérôme "Lynix" Leclercq (Lynix680@gmail.com)
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
this software and associated documentation files (the "Software"), to deal in
|
|
the Software without restriction, including without limitation the rights to
|
|
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
of the Software, and to permit persons to whom the Software is furnished to do
|
|
so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
SOFTWARE.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#ifndef NAZARA_CONFIG_CORE_HPP
|
|
#define NAZARA_CONFIG_CORE_HPP
|
|
|
|
/// Chaque modification d'un paramètre du module nécessite une recompilation de celui-ci
|
|
|
|
// Appelle exit dès qu'une assertion est invalide
|
|
#define NAZARA_CORE_EXIT_ON_ASSERT_FAILURE 1
|
|
|
|
// Teste les assertions
|
|
#define NAZARA_CORE_ENABLE_ASSERTS 0
|
|
|
|
// Taille du buffer lors d'une lecture complète d'un fichier (ex: Hash)
|
|
#define NAZARA_CORE_FILE_BUFFERSIZE 4096
|
|
|
|
// Incorpore la table Unicode Character Data (Nécessaires pour faire fonctionner le flag NzString::HandleUTF8)
|
|
#define NAZARA_CORE_INCLUDE_UNICODEDATA 0
|
|
|
|
// Utilise un tracker pour repérer les éventuels leaks (Ralentit l'exécution)
|
|
#define NAZARA_CORE_MEMORYLEAKTRACKER 0
|
|
|
|
// Précision des réels lors de la transformation en texte (Max. chiffres après la virgule)
|
|
#define NAZARA_CORE_REAL_PRECISION 6
|
|
|
|
// Duplique la sortie du log sur le flux de sortie standard (cout)
|
|
#define NAZARA_CORE_DUPLICATE_TO_COUT 0
|
|
|
|
// Active les tests de sécurité basés sur le code (Conseillé pour le développement)
|
|
#define NAZARA_CORE_SAFE 1
|
|
|
|
// Protège les classes des accès concurrentiels
|
|
#define NAZARA_CORE_THREADSAFE 1
|
|
|
|
// Les classes à protéger des accès concurrentiels
|
|
#define NAZARA_THREADSAFETY_CLOCK 0 // NzClock
|
|
#define NAZARA_THREADSAFETY_DIRECTORY 1 // NzDirectory
|
|
#define NAZARA_THREADSAFETY_DYNLIB 1 // NzDynLib
|
|
#define NAZARA_THREADSAFETY_FILE 1 // NzFile
|
|
#define NAZARA_THREADSAFETY_HASHDIGEST 0 // NzHashDigest
|
|
#define NAZARA_THREADSAFETY_LOG 1 // NzLog
|
|
#define NAZARA_THREADSAFETY_RESOURCE 1 // NzResource
|
|
#define NAZARA_THREADSAFETY_STRINGSTREAM 0 // NzStringStream
|
|
|
|
// Le nombre de spinlocks à utiliser avec les critical sections de Windows (0 pour désactiver)
|
|
#define NAZARA_CORE_WINDOWS_CS_SPINLOCKS 4096
|
|
|
|
// Optimise l'implémentation Windows avec certaines avancées de Windows vista (Casse la compatibilité XP)
|
|
#define NAZARA_CORE_WINDOWS_VISTA 0
|
|
|
|
/*
|
|
// Règle le temps entre le réveil du thread des timers et l'activation d'un timer (En millisecondes)
|
|
#define NAZARA_CORE_TIMER_WAKEUPTIME 10
|
|
*/
|
|
|
|
#endif // NAZARA_CONFIG_CORE_HPP
|