Dropping smartstreams (not fully cleared) and added get_pid()
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.26.0)
|
||||
project(gtest_Graphics VERSION 0.1.0 LANGUAGES C CXX)
|
||||
|
||||
add_executable(ProcessTest main.cpp)
|
||||
target_link_libraries(ProcessTest NBCore)
|
||||
@@ -0,0 +1,17 @@
|
||||
#define CODE_ERROR_LOCATIONS
|
||||
|
||||
|
||||
#include <iostream>
|
||||
#include "Processes.hpp"
|
||||
#include <Windows.h>
|
||||
|
||||
int main() {
|
||||
|
||||
std::cout << "nb::get_pid() -> " << nb::get_pid() << std::endl;
|
||||
|
||||
#ifdef _TARGET_WINDOWS
|
||||
std::cout << "GetCurrentProcessId() -> " << GetCurrentProcessId() << std::endl;
|
||||
#endif // _TARGET_WINDOWS
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user