first commit
This commit is contained in:
73
include/platform/nconfig.h
Normal file
73
include/platform/nconfig.h
Normal file
@ -0,0 +1,73 @@
|
||||
/* -----------------------------------------------------------------------------
|
||||
GSFramework
|
||||
Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
|
||||
----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
#ifndef __GSCONFIG__
|
||||
#define __GSCONFIG__
|
||||
|
||||
|
||||
/// Define to disable all debug/tracking code.
|
||||
#ifndef __ENGINE_RETAIL__
|
||||
#define __ENGINE_RETAIL__ 0
|
||||
#endif
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Engine configuration.
|
||||
//------------------------------------------------------------------------------
|
||||
/// Enable logging system support.
|
||||
#define __PLATFORM_LOG_SUPPORT__ 1
|
||||
|
||||
/*!
|
||||
@short Maximum UV channel count.
|
||||
This value has no limitation, however try to keep it in a reasonable
|
||||
range to avoid wasting memory and preserve compatibility.
|
||||
@note The lowest acceptable value is 1. (Default: 3)
|
||||
*/
|
||||
#define __UV_PER_GEOMETRY__ 3
|
||||
/*!
|
||||
@short Bone/vertex limit.
|
||||
*/
|
||||
#define __PV_BONE_LIMIT__ 4
|
||||
/*!
|
||||
@short Bone/list limit.
|
||||
*/
|
||||
#define __PL_BONE_LIMIT__ 48
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Debug configuration.
|
||||
//------------------------------------------------------------------------------
|
||||
#if __ENGINE_RETAIL__
|
||||
|
||||
/*
|
||||
Deactivate unneeded subsystems for a retail build.
|
||||
*/
|
||||
#undef __PLATFORM_LOG_SUPPORT__
|
||||
#define __PLATFORM_LOG_SUPPORT__ 0
|
||||
|
||||
#else // __ENGINE_RETAIL__
|
||||
|
||||
/*!
|
||||
@short Define to enable per allocation statistics.
|
||||
@note All allocations are inflated by a monitoring header.
|
||||
The allocators are adapted to fit the increased allocations
|
||||
so that their behavior will not change.
|
||||
@note A 2 bytes long magic word is added to the end of each allocation
|
||||
and checked for overrun on release.
|
||||
*/
|
||||
#define __ENABLE_ALLOCATION_STAT__ 0
|
||||
/// Define to enable end of allocation overwrite detection.
|
||||
#define __ENABLE_ALLOCATION_GUARD__ 0
|
||||
|
||||
/// Enable the small block allocator system (ialloc.cpp).
|
||||
#define __ENABLE_GLOBAL_SBA__ 0
|
||||
|
||||
#endif // __ENGINE_RETAIL__
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
#endif // __GSCONFIG__
|
||||
Reference in New Issue
Block a user