OMSimulatorLib
The OMSimulator project is a FMI-based co-simulation environment that supports ordinary (i.e., non-delayed) and TLM connections.
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_REALLOC
#define WAI_REALLOC(p, size)
Definition: whereami.c:37
getModulePath
WAI_FUNCSPEC int WAI_PREFIX() getModulePath(char *out, int capacity, int *dirname_length)
getExecutablePath
WAI_FUNCSPEC int WAI_PREFIX() getExecutablePath(char *out, int capacity, int *dirname_length)
WAI_FREE
#define WAI_FREE(p)
Definition: whereami.c:33
WAI_FUNCSPEC
#define WAI_FUNCSPEC
Definition: whereami.h:14
WAI_MALLOC
#define WAI_MALLOC(size)
Definition: whereami.c:29
whereami.h
WAI_PREFIX
#define WAI_PREFIX(function)
Definition: whereami.h:17