True Axis Physics SDK 1.2.0.1 Beta Documentation
www.trueaxis.com

StackAlloc.h

00001 //---------------------------------------------------------------------------------
00002 // File Name: StackAlloc.h
00003 // Description: Internal physics file
00004 //
00005 // Copyright (C) 2004 - 2006 True Axis Pty Ltd, Australia. 
00006 // All Rights Reserved.
00007 //
00008 // History:
00009 //      Created File.
00010 //---------------------------------------------------------------------------------
00011 
00012 #ifndef TA_STACKALLOCK_H
00013 #define TA_STACKALLOCK_H
00014 
00015 #ifndef TA_COMMON_H
00016 #include "Common.h"
00017 #endif // TA_COMMON_H
00018 
00019 #include <malloc.h>
00020 
00021 TA_OBFUSCATION_SKIP_PASS_2
00022 
00023 #ifdef TA_GCC_LINUX
00024 #define TA_STACK_ALLOC(Type, pPointer, nSize) Type pPointer[nSize]
00025 #else
00026 #define TA_STACK_ALLOC(Type, pPointer, nSize) Type* pPointer = (Type*)_alloca((nSize) * sizeof (Type))
00027 #endif
00028 
00029 #endif // TA_STACKALLOCK_H
00030 


© Copyright 2004-2006 TRUE AXIS PTY LTD Australia. All rights reserved.