// (‑●‑●)> dual licensed under the WTFPL v2 and MIT licenses
// without any warranty.
// by Gregory Pakosz (@gpakosz)
// https://github.com/gpakosz/whereami
#ifndef WHEREAMI_H
#define WHEREAMI_H
#ifdef __cplusplus
extern "C" {
#endif
#ifndef WAI_FUNCSPEC
#define WAI_FUNCSPEC
#endif
#ifndef WAI_PREFIX
#define WAI_PREFIX(function) wai_##function
#endif
/**
* Returns the path to the current executable.
*
* Usage:
* - first call `int length = wai_getExecutablePath(NULL, 0, NULL);` to
* retrieve the length of the path
* - allocate the destination buffer with `path = (char*)malloc(length + 1);`
* - call `wai_getExecutablePath(path, length, NULL)` again to retrieve the
* path
* - add a terminal NUL character with `path[length] = '\0';`
*
* @param out destination buffer, optional
* @param capacity destination buffer capacity
* @param dirname_length optional recipient for the length of the dirname part
* of the path.
*
* @return the length of the executable path on success (without a terminal NUL
* character), otherwise `-1`
*/
WAI_FUNCSPEC
int WAI_PREFIX(getExecutablePath)(char* out, int capacity, int* dirname_length);
/**
* Returns the path to the current module
*
* Usage:
* - first call `int length = wai_getModulePath(NULL, 0, NULL);` to retrieve
* the length of the path
* - allocate the destination buffer with `path = (char*)malloc(length + 1);`
* - call `wai_getModulePath(path, length, NULL)` again to retrieve the path
* - add a terminal NUL character with `path[length] = '\0';`
*
* @param out destination buffer, optional
* @param capacity destination buffer capacity
* @param dirname_length optional recipient for the length of the dirname part
* of the path.
*
* @return the length of the module path on success (without a terminal NUL
* character), otherwise `-1`
*/
WAI_FUNCSPEC
int WAI_PREFIX(getModulePath)(char* out, int capacity, int* dirname_length);
#ifdef __cplusplus
}
#endif
#endif // #ifndef WHEREAMI_H
18e66adcb514d9d13c77640ca42e99ba7c20b'>diff stats
blob: 7d90b7f2351cd80e8bc83990f74a75b5eb05c750 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
name: "Gray Color Backside"
panel_display_name: "Outside Pumpkin"
panels {
name: "ORANGE"
path: "Panels/Hexes/lightgreen_1"
clue: "orange"
answer: "blue"
symbols: SUN
}
panels {
name: "BEGINNING"
path: "Panels/Hexes/lightgreen_2"
clue: "beginning"
answer: "ending"
symbols: SUN
}
panels {
name: "FOREWARD"
path: "Panels/Hexes/lightgreen_3"
clue: "foreward"
answer: "forwards"
symbols: ZERO
symbols: PLANET
}
panels {
name: "GO"
path: "Panels/Hexes/lightgreen_4"
clue: "go"
answer: "come"
symbols: SUN
}
panels {
name: "LAST"
path: "Panels/Hexes/lightgreen_5"
clue: "last"
answer: "first"
symbols: SUN
}
panels {
name: "RISE"
path: "Panels/Hexes/lightgreen_6"
clue: "rise"
answer: "flowers"
symbols: EXAMPLE
symbols: PLANET
symbols: AGE
}
|