Home

Resume

Blog

Teikitu


/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
/*  »Project«   Teikitu Gaming System (TgS) (∂)
    »File«      TgS Common - Base - Define - Configuration.h
    »Author«    Andrew Aye (EMail: mailto:andrew.aye@gmail.com, Web: http://www.andrewaye.com)
    »Version«   4.51 / »GUID« A9981407-3EC9-42AF-8B6F-8BE6DD919615                                                                                                        */
/*   -------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/*  Copyright: © 2002-2017, Andrew Aye.  All Rights Reserved.
    This software is free for non-commercial use.  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
      following conditions are met:
        Redistribution of source code must retain this copyright notice, this list of conditions and the following disclaimers.
        Redistribution in binary form must reproduce this copyright notice, this list of conditions and the following disclaimers in the documentation and other materials
          provided with the distribution.
    The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission.
    The intellectual property rights of the algorithms used reside with Andrew Aye.
    You may not use this software, in whole or in part, in support of any commercial product without the express written consent of the author.
    There is no warranty or other guarantee of fitness of this software for any purpose. It is provided solely "as is".                                                   */
/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
#if !defined(TGS_COMMON_BASE_DEFINE_CONFIGURATION_H)
#define TGS_COMMON_BASE_DEFINE_CONFIGURATION_H
#pragma once

#include "TgS COMMON/TgS Common - Base - Define - Platform.h"


/* == Common ============================================================================================================================================================ */

#define TgS_COPYRIGHT                       TgT("Copyright (C) 2002-2017 Andrew Aye.  All Rights Reserved.")

#define TGS_NET_VERSION                     0
#define TGS_API_VERSION                     4
#define TGS_CORE_VERSION                    4
#define TGS_BUILD_VERSION                   4

#if defined(TGS_RELEASE)

    #define TgCOMPILE_ASSERT                    1
    #define TgCOMPILE_ASSERT__CRITICAL          1
    #define TgCOMPILE_ASSERT__ERROR             1
    #define TgCOMPILE_ASSERT__PARAM_CHECK       1
    #define TgCOMPILE_ASSERT__DIAG              1
    #define TgCOMPILE_ASSERT__VERIFY            1
    #define TgCOMPILE_ASSERT__WARNING           1
    #define TgCOMPILE_ASSERT__MESSAGE           1

    #define TgCOMPILE_MEM_TRACK                 1
    #define TgCOMPILE_MEM_MALLOC_CLEAR          0
    #define TgCOMPILE_MEM_FREE_CLEAR            0

    #define TgCOMPILE_STR_LENGTH_CHECK          1

    #define TgCOMPILE_CONSOLE                   1
    #define TgCOMPILE_CONSOLE_VAR_DEV           1
    #define TgCOMPILE_CONSOLE_DEBUG_OUTPUT      1
    #define TgCOMPILE_PROFILE                   1
    #define TgCOMPILE_THREAD_INFO               1
    #define TgCOMPILE_RENDER_DEBUG_OUTPUT       1

    #define TgCOMPILE_JOB_THREAD                (1 && TgCOMPILE_THREAD)
    #define TgCOMPILE_THREAD_RENDER             (1 && TgCOMPILE_JOB_THREAD)

    #define TgS_DEBUG_STATIC_MEMORY             1
    #define TgS_DEBUG_MEMORY                    1
    #define TgS_DEBUG_ENGINE                    1

    #define TgS_DEBUG_COMMON                    1
    #define TgS_DEBUG_COLLISION                 1
    #define TgS_DEBUG_PARTITION                 1
    #define TgS_DEBUG_PATH_AI                   1
    #define TgS_DEBUG_KERNEL                    1
    #define TgS_DEBUG_ANIMATION                 1
    #define TgS_DEBUG_INPUT                     1
    #define TgS_DEBUG_PHYSICS                   1
    #define TgS_DEBUG_RENDER                    1
    #define TgS_DEBUG_SOUND                     1
    #define TgS_DEBUG_EFFECT                    1
    #define TgS_DEBUG_SET                       1
    #define TgS_DEBUG_SCRIPT                    1
    #define TgS_DEBUG_OBJECT                    1
    #define TgS_DEBUG_EXECUTE                   1
    #define TgS_DEBUG_UTILITY                   1

    #define TgS_STAT_COMMON                     1
    #define TgS_STAT_COLLISION                  1
    #define TgS_STAT_PARTITION                  1
    #define TgS_STAT_PATH_AI                    1
    #define TgS_STAT_KERNEL                     1
    #define TgS_STAT_ANIMATION                  1
    #define TgS_STAT_INPUT                      1
    #define TgS_STAT_PHYSICS                    1
    #define TgS_STAT_RENDER                     1
    #define TgS_STAT_SOUND                      1
    #define TgS_STAT_EFFECT                     1
    #define TgS_STAT_SET                        1
    #define TgS_STAT_SCRIPT                     1
    #define TgS_STAT_OBJECT                     1
    #define TgS_STAT_EXECUTE                    1

#elif defined(TGS_FINAL)

    #define TgCOMPILE_ASSERT                    0
    #define TgCOMPILE_ASSERT__CRITICAL          1
    #define TgCOMPILE_ASSERT__ERROR             1
    #define TgCOMPILE_ASSERT__PARAM_CHECK       1
    #define TgCOMPILE_ASSERT__DIAG              1
    #define TgCOMPILE_ASSERT__VERIFY            1
    #define TgCOMPILE_ASSERT__WARNING           1
    #define TgCOMPILE_ASSERT__MESSAGE           1

    #define TgCOMPILE_MEM_TRACK                 0
    #define TgCOMPILE_MEM_MALLOC_CLEAR          0
    #define TgCOMPILE_MEM_FREE_CLEAR            0

    #define TgCOMPILE_STR_LENGTH_CHECK          0

    #define TgCOMPILE_CONSOLE                   0
    #define TgCOMPILE_CONSOLE_VAR_DEV           0
    #define TgCOMPILE_CONSOLE_DEBUG_OUTPUT      0
    #define TgCOMPILE_PROFILE                   0
    #define TgCOMPILE_THREAD_INFO               0
    #define TgCOMPILE_RENDER_DEBUG_OUTPUT       0

    #define TgCOMPILE_JOB_THREAD                (1 && TgCOMPILE_THREAD)
    #define TgCOMPILE_THREAD_RENDER             (1 && TgCOMPILE_JOB_THREAD)

    #define TgS_DEBUG_STATIC_MEMORY             0
    #define TgS_DEBUG_MEMORY                    0
    #define TgS_DEBUG_ENGINE                    0

    #define TgS_DEBUG_COMMON                    0
    #define TgS_DEBUG_COLLISION                 0
    #define TgS_DEBUG_PARTITION                 0
    #define TgS_DEBUG_PATH_AI                   0
    #define TgS_DEBUG_KERNEL                    0
    #define TgS_DEBUG_ANIMATION                 0
    #define TgS_DEBUG_INPUT                     0
    #define TgS_DEBUG_PHYSICS                   0
    #define TgS_DEBUG_RENDER                    0
    #define TgS_DEBUG_SOUND                     0
    #define TgS_DEBUG_EFFECT                    0
    #define TgS_DEBUG_SET                       0
    #define TgS_DEBUG_SCRIPT                    0
    #define TgS_DEBUG_OBJECT                    0
    #define TgS_DEBUG_EXECUTE                   0
    #define TgS_DEBUG_UTILITY                   0

    #define TgS_STAT_COMMON                     0
    #define TgS_STAT_COLLISION                  0
    #define TgS_STAT_PARTITION                  0
    #define TgS_STAT_PATH_AI                    0
    #define TgS_STAT_KERNEL                     0
    #define TgS_STAT_ANIMATION                  0
    #define TgS_STAT_INPUT                      0
    #define TgS_STAT_PHYSICS                    0
    #define TgS_STAT_RENDER                     0
    #define TgS_STAT_SOUND                      0
    #define TgS_STAT_EFFECT                     0
    #define TgS_STAT_SET                        0
    #define TgS_STAT_SCRIPT                     0
    #define TgS_STAT_OBJECT                     0
    #define TgS_STAT_EXECUTE                    0

#elif defined(TGS_DEBUG)

    #define TgCOMPILE_ASSERT                    1
    #define TgCOMPILE_ASSERT__CRITICAL          1
    #define TgCOMPILE_ASSERT__ERROR             1
    #define TgCOMPILE_ASSERT__PARAM_CHECK       1
    #define TgCOMPILE_ASSERT__DIAG              1
    #define TgCOMPILE_ASSERT__VERIFY            1
    #define TgCOMPILE_ASSERT__WARNING           1
    #define TgCOMPILE_ASSERT__MESSAGE           1

    #define TgCOMPILE_MEM_TRACK                 1
    #define TgCOMPILE_MEM_MALLOC_CLEAR          1
    #define TgCOMPILE_MEM_FREE_CLEAR            1

    #define TgCOMPILE_STR_LENGTH_CHECK          1

    #define TgCOMPILE_CONSOLE                   1
    #define TgCOMPILE_CONSOLE_VAR_DEV           1
    #define TgCOMPILE_CONSOLE_DEBUG_OUTPUT      1
    #define TgCOMPILE_PROFILE                   1
    #define TgCOMPILE_THREAD_INFO               1
    #define TgCOMPILE_RENDER_DEBUG_OUTPUT       1

    #define TgCOMPILE_JOB_THREAD                (1 && TgCOMPILE_THREAD)
    #define TgCOMPILE_THREAD_RENDER             (1 && TgCOMPILE_JOB_THREAD)

    #define TgS_DEBUG_STATIC_MEMORY             1
    #define TgS_DEBUG_MEMORY                    1
    #define TgS_DEBUG_ENGINE                    1

    #define TgS_DEBUG_COMMON                    1
    #define TgS_DEBUG_COLLISION                 1
    #define TgS_DEBUG_PARTITION                 1
    #define TgS_DEBUG_PATH_AI                   1
    #define TgS_DEBUG_KERNEL                    1
    #define TgS_DEBUG_ANIMATION                 1
    #define TgS_DEBUG_INPUT                     1
    #define TgS_DEBUG_PHYSICS                   1
    #define TgS_DEBUG_RENDER                    1
    #define TgS_DEBUG_SOUND                     1
    #define TgS_DEBUG_EFFECT                    1
    #define TgS_DEBUG_SET                       1
    #define TgS_DEBUG_SCRIPT                    1
    #define TgS_DEBUG_OBJECT                    1
    #define TgS_DEBUG_EXECUTE                   1
    #define TgS_DEBUG_UTILITY                   1

    #define TgS_STAT_COMMON                     1
    #define TgS_STAT_COLLISION                  1
    #define TgS_STAT_PARTITION                  1
    #define TgS_STAT_PATH_AI                    1
    #define TgS_STAT_KERNEL                     1
    #define TgS_STAT_ANIMATION                  1
    #define TgS_STAT_INPUT                      1
    #define TgS_STAT_PHYSICS                    1
    #define TgS_STAT_RENDER                     1
    #define TgS_STAT_SOUND                      1
    #define TgS_STAT_EFFECT                     1
    #define TgS_STAT_SET                        1
    #define TgS_STAT_SCRIPT                     1
    #define TgS_STAT_OBJECT                     1
    #define TgS_STAT_EXECUTE                    1

#elif defined(TGS_TOOLS)

    #define TgCOMPILE_ASSERT                    1
    #define TgCOMPILE_ASSERT__CRITICAL          1
    #define TgCOMPILE_ASSERT__ERROR             1
    #define TgCOMPILE_ASSERT__PARAM_CHECK       1
    #define TgCOMPILE_ASSERT__DIAG              1
    #define TgCOMPILE_ASSERT__VERIFY            1
    #define TgCOMPILE_ASSERT__WARNING           1
    #define TgCOMPILE_ASSERT__MESSAGE           1

    #define TgCOMPILE_MEM_TRACK                 1
    #define TgCOMPILE_MEM_MALLOC_CLEAR          1
    #define TgCOMPILE_MEM_FREE_CLEAR            1

    #define TgCOMPILE_STR_LENGTH_CHECK          1

    #define TgCOMPILE_CONSOLE                   1
    #define TgCOMPILE_CONSOLE_VAR_DEV           1
    #define TgCOMPILE_CONSOLE_DEBUG_OUTPUT      1
    #define TgCOMPILE_PROFILE                   1
    #define TgCOMPILE_THREAD_INFO               1
    #define TgCOMPILE_RENDER_DEBUG_OUTPUT       1

    #define TgCOMPILE_JOB_THREAD                (1 && TgCOMPILE_THREAD)
    #define TgCOMPILE_THREAD_RENDER             (1 && TgCOMPILE_JOB_THREAD)

    #define TgS_DEBUG_STATIC_MEMORY             1
    #define TgS_DEBUG_MEMORY                    1
    #define TgS_DEBUG_ENGINE                    1

    #define TgS_DEBUG_COMMON                    1
    #define TgS_DEBUG_COLLISION                 1
    #define TgS_DEBUG_PARTITION                 1
    #define TgS_DEBUG_PATH_AI                   1
    #define TgS_DEBUG_KERNEL                    1
    #define TgS_DEBUG_ANIMATION                 1
    #define TgS_DEBUG_INPUT                     1
    #define TgS_DEBUG_PHYSICS                   1
    #define TgS_DEBUG_RENDER                    1
    #define TgS_DEBUG_SOUND                     1
    #define TgS_DEBUG_EFFECT                    1
    #define TgS_DEBUG_SET                       1
    #define TgS_DEBUG_SCRIPT                    1
    #define TgS_DEBUG_OBJECT                    1
    #define TgS_DEBUG_EXECUTE                   1
    #define TgS_DEBUG_UTILITY                   1

    #define TgS_STAT_COMMON                     1
    #define TgS_STAT_COLLISION                  1
    #define TgS_STAT_PARTITION                  1
    #define TgS_STAT_PATH_AI                    1
    #define TgS_STAT_KERNEL                     1
    #define TgS_STAT_ANIMATION                  1
    #define TgS_STAT_INPUT                      1
    #define TgS_STAT_PHYSICS                    1
    #define TgS_STAT_RENDER                     1
    #define TgS_STAT_SOUND                      1
    #define TgS_STAT_EFFECT                     1
    #define TgS_STAT_SET                        1
    #define TgS_STAT_SCRIPT                     1
    #define TgS_STAT_OBJECT                     1
    #define TgS_STAT_EXECUTE                    1

#else

    #error Unknown Configuration

#endif

#define TgCOMPILE_MEM_MALLOC_PATTERN        0xEB
#define TgCOMPILE_MEM_FREE_PATTERN          0xFA

/* Special Build Flags */
#define TgCOMPILE_VIEWER_BUILD              0
#define TgCOMPILE_TOOL_BUILD                0


/* ====================================================================================================================================================================== */
#endif