OMSimulatorLib
The OMSimulator project is a FMI-based co-simulation environment.
whereami.h
Go to the documentation of this file.
1 // (‑●‑●)> dual licensed under the WTFPL v2 and MIT licenses
2 // without any warranty.
3 // by Gregory Pakosz (@gpakosz)
4 // https://github.com/gpakosz/whereami
5 
6 #ifndef WHEREAMI_H
7 #define WHEREAMI_H
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 #ifndef WAI_FUNCSPEC
14  #define WAI_FUNCSPEC
15 #endif
16 #ifndef WAI_PREFIX
17 #define WAI_PREFIX(function) wai_##function
18 #endif
19 
40 int WAI_PREFIX(getExecutablePath)(char* out, int capacity, int* dirname_length);
41 
61 int WAI_PREFIX(getModulePath)(char* out, int capacity, int* dirname_length);
62 
63 #ifdef __cplusplus
64 }
65 #endif
66 
67 #endif // #ifndef WHEREAMI_H
WAI_FUNCSPEC int WAI_PREFIX() getExecutablePath(char *out, int capacity, int *dirname_length)
WAI_FUNCSPEC int WAI_PREFIX() getModulePath(char *out, int capacity, int *dirname_length)
#define WAI_PREFIX(function)
Definition: whereami.h:17
#define WAI_FUNCSPEC
Definition: whereami.h:14