// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= //
//
//  Project:   Talina Gaming System (TgS) (∂)
//  File:      TgS (W32) Common -- INCLUDE.h
//  Author:    Andrew Aye (EMail: mailto:andrew.aye@gmail.com, Web: http://www.andrewaye.com)
//  Version:   4.0
//
// ------------------------------------------------------------------------------------------------------------------------------ //
//
//  Copyright: © 2002-2010, 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: 
//    Redistributions of source code must retain this copyright notice, this list of conditions and the following disclaimers. 
//    Redistributions 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. 
//
//  Neither the names of the copyright owner nor the names of its contributors may 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_W32_COMMON__INCLUDE_H_)
#define _TGS_W32_COMMON__INCLUDE_H_
#pragma once

// START TGS ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

#include "TgS COMMON/TgS (W32) Common - Base - Defines.h"
#include "TgS COMMON/TgS (W32) Common - Base - Include.h"
#include "TgS COMMON/TgS Common - Base - Type.h"
#include "TgS COMMON/TgS Common - Base - Type [Limits].h"

#include "TgS COMMON/TgS Literals.TgS"

#define ERROR_PROC( A, B )      ETgRET_CODE__##A,
#define WARN_PROC( A, B )       ETgRET_CODE__##A,
#define OK_PROC( A, B )         ETgRET_CODE__##A,

TgTYPE_DECLARE( enum ETgCOMMON_ERROR_LIST, ETgCOMMON_ERROR_LIST );
enum ETgCOMMON_ERROR_LIST
{
    #include "TgS COMMON/TgS Errors.TgS"
};

#undef OK_PROC
#undef ERROR_PROC
#undef WARN_PROC

#define ERROR_PROC( A, B )      enum { KTgE_##A = MAKE_TgRESULT( 1, B, ETgRET_CODE__##A ) };
#define WARN_PROC( A, B )       enum { KTgW_##A = MAKE_TgRESULT( 1, B, ETgRET_CODE__##A ) };
#define OK_PROC( A, B )         enum { KTgS_##A = MAKE_TgRESULT( 0, B, ETgRET_CODE__##A ) };

#include "TgS COMMON/TgS Errors.TgS"

#undef OK_PROC
#undef ERROR_PROC
#undef WARN_PROC

#include "TgS COMMON/TgS Common - Base - API.h"
#include "TgS COMMON/TgS Common - Base - API - Platform.h"
#include "TgS COMMON/TgS (W32) Common - Base.h"
#include "TgS COMMON/TgS (W32) Common -- MATH.h"
#include "TgS COMMON/TgS Common -- GEOMETRY.h"
#include "TgS COMMON/TgS (W32) Common - STg1_MP_CS.h"                   //« Synchronization can be used in Structures and Templates.
#include "TgS COMMON/TgS (W32) Common - STg1_MP_MX.h"                   //« Synchronization can be used in Structures and Templates.
#include "TgS COMMON/TgS (W32) Common - STg1_MP_SM.h"                   //« Synchronization can be used in Structures and Templates.
#include "TgS COMMON/TgS Common -- Util.h"
#include "TgS COMMON/TgS Common - Base - Type [File].h"
#include "TgS COMMON/TgS Common - Base - Type [Structs].h"
#include "TgS COMMON/TgS Common - Base - Type [IO].h"
#include "TgS COMMON/TgS Common - Base - Type [Data].h"
#include "TgS COMMON/TgS (W32) Common -- OBJECTS.h"
#include "TgS COMMON/TgS Common -- COMMON.h"

#include "TgS COMMON/TgS (W32) Common -- MATH.inl"
#include "TgS COMMON/TgS Common -- Util.inl"
#include "TgS COMMON/TgS Common - Base - API.inl"
#include "TgS COMMON/TgS (W32) Common - Base - API - Platform.inl"
#include "TgS COMMON/TgS Common - Base - Type.inl"
#include "TgS COMMON/TgS Common -- GEOMETRY.inl"
#include "TgS COMMON/TgS Common - Base - Type [Structs].inl"
#include "TgS COMMON/TgS Common - Base - Type [IO].inl"

#include "TgS COMMON/TgS (W32) Common -- OBJECTS.inl"

#endif //  END  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////