diff options
author | Ash Wolf <ninji@wuffs.org> | 2022-10-11 03:18:42 +0100 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2022-10-11 03:18:42 +0100 |
commit | 26b57fbea1a969ef6405365ff78391e9d3605621 (patch) | |
tree | b6f14f5c083d0fbb42c5495eea7c74099ff45315 /command_line/CmdLine/Src/MacEmul/LowMem.c | |
parent | 7d4bee5f8f28b72610c8518e5cb9dc145c68b816 (diff) | |
download | MWCC-26b57fbea1a969ef6405365ff78391e9d3605621.tar.gz MWCC-26b57fbea1a969ef6405365ff78391e9d3605621.zip |
add cmakelists for CLion, tons and tons of reorganisation using new info from the Pro8 compiler
Diffstat (limited to 'command_line/CmdLine/Src/MacEmul/LowMem.c')
-rw-r--r-- | command_line/CmdLine/Src/MacEmul/LowMem.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/command_line/CmdLine/Src/MacEmul/LowMem.c b/command_line/CmdLine/Src/MacEmul/LowMem.c new file mode 100644 index 0000000..7fab079 --- /dev/null +++ b/command_line/CmdLine/Src/MacEmul/LowMem.c @@ -0,0 +1,20 @@ +#include "mwcc_decomp.h" + +static OSErr memErr; + +UInt32 LMGetTicks() { + return (OS_GetMilliseconds() * 60) / 1000; +} + +UInt32 LMGetTime() { + return OS_GetMilliseconds() / 1000; +} + +OSErr LMGetMemErr() { + return memErr; +} + +void LMSetMemErr(OSErr value) { + memErr = value; +} + |