Provide whereami stubs for unsupported platforms

This commit is contained in:
Stefan Rueger
2026-03-24 12:09:26 +00:00
parent f9c393a05c
commit 566dfe55c5

View File

@@ -737,7 +737,18 @@ extern "C" {
#else
#error unsupported platform
WAI_FUNCSPEC int WAI_PREFIX(getExecutablePath)(char *out, int capacity, int *dirname_length) {
if(dirname_length)
*dirname_length = -1;
return -1;
}
WAI_NOINLINE WAI_FUNCSPEC int WAI_PREFIX(getModulePath)(char *out, int capacity, int *dirname_length) {
if(dirname_length)
*dirname_length = -1;
return -1;
}
#endif
#ifdef __cplusplus