Renamed some preproc vars and some CMake/build dir cleanup

This commit is contained in:
NaifBanana
2026-01-26 11:39:08 -06:00
parent 3b828a34ff
commit 4c8c622f0b
3 changed files with 13 additions and 27 deletions
+8 -8
View File
@@ -1,23 +1,23 @@
#ifdef _TARGET_WINDOWS
#ifdef _NB_TARGET_WINDOWS
#include <Windows.h>
#endif // _TARGET_WINDOWS
#endif // _NB_TARGET_WINDOWS
#ifdef _TARGET_LINUX
#ifdef _NB_TARGET_LINUX
#include <unistd.h>
#endif // _TARGET_LINUX
#endif // _NB_TARGET_LINUX
#include "Processes.hpp"
#include "Types.hpp"
namespace nb {
#ifdef _TARGET_WINDOWS
#ifdef _NB_TARGET_WINDOWS
uint64_t GetPID() {
return GetCurrentProcessId();
}
#endif // _TARGET_WINDOWS
#endif // _NB_TARGET_WINDOWS
#ifdef _TARGET_LINUX
#endif // _TARGET_LINUX
#ifdef _NB_TARGET_LINUX
#endif // _NB_TARGET_LINUX
} // namespace nb
-11
View File
@@ -9,14 +9,3 @@
TEST(ProcessesTest, GetPID) {
ASSERT_EQ(nb::GetPID(), GetCurrentProcessId());
}
/* int main() {
std::cout << "nb::GetPID() -> " << nb::GetPID() << std::endl;
#ifdef _TARGET_WINDOWS
std::cout << "GetCurrentProcessId() -> " << GetCurrentProcessId() << std::endl;
#endif // _TARGET_WINDOWS
return 0;
} */