3
0
mirror of https://github.com/XboxDev/nxdk.git synced 2026-04-03 05:43:26 +00:00
Files
nxdk/lib/winapi/error.c
2024-09-11 06:17:06 +09:30

19 lines
278 B
C

// SPDX-License-Identifier: MIT
// SPDX-FileCopyrightText: 2019 Stefan Schmidt
#include <threads.h>
#include <winbase.h>
static thread_local DWORD lastError = 0;
DWORD GetLastError (void)
{
return lastError;
}
void SetLastError (DWORD error)
{
lastError = error;
}