mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
DirtySDK (EA's Dirty Sockets library) will be used for the LiveAPI implementation, and depends on: EABase, EAThread.
33 lines
1.5 KiB
C
33 lines
1.5 KiB
C
///////////////////////////////////////////////////////////////////////////////
|
|
// Copyright (c) Electronic Arts Inc. All rights reserved.
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
#if defined(EA_PRAGMA_ONCE_SUPPORTED)
|
|
#pragma once // Some compilers (e.g. VC++) benefit significantly from using this. We've measured 3-4% build speed improvements in apps as a result.
|
|
#endif
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// NOTE(rparolin): Provides a unified method of access to EAThread global
|
|
// variables that (when specified by the user) can become DLL safe by adding a
|
|
// dependency on EAStdC EAGlobal implementation.
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef EATHREAD_INTERNAL_GLOBAL_H
|
|
#define EATHREAD_INTERNAL_GLOBAL_H
|
|
|
|
#if EATHREAD_GLOBAL_VARIABLE_DLL_SAFETY
|
|
#include <EAStdC/EAGlobal.h>
|
|
|
|
#define EATHREAD_GLOBALVARS (*EA::StdC::AutoStaticOSGlobalPtr<EA::Thread::EAThreadGlobalVars, 0xdabbad00>().get())
|
|
#define EATHREAD_GLOBALVARS_CREATE_INSTANCE EA::StdC::AutoStaticOSGlobalPtr<EA::Thread::EAThreadGlobalVars, 0xdabbad00> gGlobalVarsInstance;
|
|
#define EATHREAD_GLOBALVARS_EXTERN_INSTANCE
|
|
|
|
#else
|
|
#define EATHREAD_GLOBALVARS gEAThreadGlobalVars
|
|
#define EATHREAD_GLOBALVARS_CREATE_INSTANCE EA::Thread::EAThreadGlobalVars gEAThreadGlobalVars
|
|
#define EATHREAD_GLOBALVARS_EXTERN_INSTANCE extern EA::Thread::EAThreadGlobalVars gEAThreadGlobalVars
|
|
|
|
#endif
|
|
|
|
#endif
|