1
0
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:
Thomas Harte
2017-08-01 22:04:58 -04:00
parent 8d39a20088
commit 6ca07f1e28
2 changed files with 20 additions and 0 deletions

View 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 */