mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-06 01:25:06 +00:00
I guess it might end up living somewhere else, but introduced a header with the compiler-specific stuff to allow me to force things inline.
This commit is contained in:
18
ClockReceiver/ForceInline.h
Normal file
18
ClockReceiver/ForceInline.h
Normal file
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// ForceInline.h
|
||||
// Clock Signal
|
||||
//
|
||||
// Created by Thomas Harte on 01/08/2017.
|
||||
// Copyright © 2017 Thomas Harte. All rights reserved.
|
||||
//
|
||||
|
||||
#ifndef ForceInline_h
|
||||
#define ForceInline_h
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define forceinline __attribute__((always_inline)) inline
|
||||
#elif _MSC_VER
|
||||
#define forceinline __forceinline
|
||||
#endif
|
||||
|
||||
#endif /* ForceInline_h */
|
Reference in New Issue
Block a user