2020-01-01 20:24:46 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
2021-03-29 21:41:11 -04:00
|
|
|
#include "CoreDefs.h"
|
2020-04-18 00:18:20 -04:00
|
|
|
#include "VirtualDirectory.h"
|
|
|
|
|
|
|
|
|
|
#include <stdint.h>
|
2020-01-01 20:24:46 -05:00
|
|
|
|
|
|
|
|
namespace PLSysCalls
|
2020-04-18 00:18:20 -04:00
|
|
|
{
|
2020-01-01 20:24:46 -05:00
|
|
|
void Sleep(uint32_t ticks);
|
2020-11-30 03:18:09 -05:00
|
|
|
void Exit(int exitCode);
|
|
|
|
|
|
2021-04-19 01:02:10 -04:00
|
|
|
#if GP_DEBUG_CONFIG && GP_ASYNCIFY_PARANOID_VALIDATION
|
2021-03-29 21:41:11 -04:00
|
|
|
class AsyncifyDisarmScope
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
AsyncifyDisarmScope();
|
|
|
|
|
~AsyncifyDisarmScope();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#define PL_ASYNCIFY_PARANOID_DISARM_FOR_SCOPE() PLSysCalls::AsyncifyDisarmScope disarmScope
|
|
|
|
|
#else
|
|
|
|
|
#define PL_ASYNCIFY_PARANOID_DISARM_FOR_SCOPE()
|
|
|
|
|
#endif
|
|
|
|
|
|
2020-11-30 03:18:09 -05:00
|
|
|
int MainExitWrapper(int (*mainFunc)());
|
2020-01-01 20:24:46 -05:00
|
|
|
}
|