MTek-GDL 0.100.4-muffintrap
Loading...
Searching...
No Matches
mgdl-cache.h
Go to the documentation of this file.
1#pragma once
2#include <mgdl/mgdl-types.h>
3
10#ifdef __cplusplus
11
12extern "C"
13{
14
15#endif
24#ifdef GEKKO
25 void mgdl_CacheFlushRange(void* rangeStart, sizetype size);
26#endif
27
28#ifdef MGDL_PLATFORM_WINDOWS
29 // If the function is defined in the .cpp file
30 // the clang compiler leaves it out and then the
31 // linker complains that it cannot find the definition...
32 #pragma clang diagnostic push
33 #pragma clang diagnostic ignored "-Wunused-parameter"
34 void mgdl_CacheFlushRange(void* rangeStart, sizetype size)
35 {
36 // nop
37 }
38 #pragma clang diagnostic pop
39#else
40 void mgdl_CacheFlushRange(void* rangeStart, sizetype size);
41#endif
42
43#ifdef __cplusplus
44}
45#endif
void mgdl_CacheFlushRange(void *rangeStart, sizetype size)
Used to flus the cache after writing to memory.
Library types, macros, defines and enums header.