2020-01-03 20:05:16 +01:00
|
|
|
// Copyright (C) 2002-2012 Nikolaus Gebhardt / Thomas Alten
|
|
|
|
// This file is part of the "Irrlicht Engine".
|
|
|
|
// For conditions of distribution and use, see copyright notice in irrlicht.h
|
|
|
|
|
|
|
|
#ifndef __S_VIDEO_2_SOFTWARE_COMPILE_CONFIG_H_INCLUDED__
|
|
|
|
#define __S_VIDEO_2_SOFTWARE_COMPILE_CONFIG_H_INCLUDED__
|
|
|
|
|
|
|
|
#include "IrrCompileConfig.h"
|
|
|
|
|
2020-12-19 16:03:11 +01:00
|
|
|
#ifndef REALINLINE
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
#define REALINLINE __forceinline
|
2020-01-03 20:05:16 +01:00
|
|
|
#else
|
2020-12-19 16:03:11 +01:00
|
|
|
#define REALINLINE inline
|
2020-01-03 20:05:16 +01:00
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2020-12-19 16:03:11 +01:00
|
|
|
//! Size of a static C-style array.
|
|
|
|
#define array_size(_arr) ((sizeof(_arr)/sizeof(*_arr)))
|
2020-06-12 22:41:49 +02:00
|
|
|
|
2020-12-19 16:03:11 +01:00
|
|
|
//! Compiler Align
|
|
|
|
#if defined(_MSC_VER)
|
|
|
|
#define ALIGN(x) __declspec(align(x))
|
|
|
|
#elif defined(__GNUC__)
|
|
|
|
#define ALIGN(x) __attribute__ ((aligned(x)))
|
|
|
|
#else
|
|
|
|
#define ALIGN(x)
|
|
|
|
#endif
|
2020-06-12 22:41:49 +02:00
|
|
|
|
|
|
|
#endif // __S_VIDEO_2_SOFTWARE_COMPILE_CONFIG_H_INCLUDED__
|