Skip to content

Commit

Permalink
Fix sys_process_memory: use macro _DESKTOP
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiaomao committed Oct 12, 2023
1 parent 5185f82 commit b5efa04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/std/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ HL_PRIM vbyte *hl_sys_exe_path() {
}

HL_PRIM double hl_sys_process_memory() {
#if defined(HL_WIN)
#if defined(HL_WIN_DESKTOP)
PROCESS_MEMORY_COUNTERS inf;
GetProcessMemoryInfo(GetCurrentProcess(),&inf,sizeof(inf));
return (double)inf.WorkingSetSize;
Expand Down

0 comments on commit b5efa04

Please sign in to comment.