2017-08-01 22:04:58 -04:00
|
|
|
//
|
|
|
|
// ForceInline.h
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 01/08/2017.
|
2018-05-13 15:19:52 -04:00
|
|
|
// Copyright 2017 Thomas Harte. All rights reserved.
|
2017-08-01 22:04:58 -04:00
|
|
|
//
|
|
|
|
|
2017-08-20 11:54:54 -04:00
|
|
|
#ifndef ForceInline_hpp
|
|
|
|
#define ForceInline_hpp
|
2017-08-01 22:04:58 -04:00
|
|
|
|
2019-10-26 22:43:25 -04:00
|
|
|
#ifndef NDEBUG
|
2017-08-21 22:04:15 -04:00
|
|
|
|
2019-10-26 22:43:25 -04:00
|
|
|
#define forceinline inline
|
2017-08-21 22:04:15 -04:00
|
|
|
|
|
|
|
#else
|
2017-08-21 21:56:42 -04:00
|
|
|
|
2017-08-01 22:04:58 -04:00
|
|
|
#ifdef __GNUC__
|
|
|
|
#define forceinline __attribute__((always_inline)) inline
|
|
|
|
#elif _MSC_VER
|
|
|
|
#define forceinline __forceinline
|
|
|
|
#endif
|
|
|
|
|
2017-08-21 22:04:15 -04:00
|
|
|
#endif
|
2017-08-21 21:56:42 -04:00
|
|
|
|
2017-08-01 22:04:58 -04:00
|
|
|
#endif /* ForceInline_h */
|