23 lines
397 B
C++
23 lines
397 B
C++
#ifdef _NB_TARGET_WINDOWS
|
|
#include <Windows.h>
|
|
#endif // _NB_TARGET_WINDOWS
|
|
|
|
#ifdef _NB_TARGET_LINUX
|
|
#include <unistd.h>
|
|
#endif // _NB_TARGET_LINUX
|
|
|
|
#include "Processes.hpp"
|
|
#include "Types.hpp"
|
|
|
|
namespace nb {
|
|
|
|
#ifdef _NB_TARGET_WINDOWS
|
|
uint64_t GetPID() {
|
|
return GetCurrentProcessId();
|
|
}
|
|
#endif // _NB_TARGET_WINDOWS
|
|
|
|
#ifdef _NB_TARGET_LINUX
|
|
#endif // _NB_TARGET_LINUX
|
|
|
|
} // namespace nb
|