From 6aaca5fd10918d8a560e1a030a8a72d96dd6cab8 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Thu, 16 Sep 2021 22:49:27 +0200 Subject: Added Oid::FromMemory() --- zencore/include/zencore/uid.h | 1 + 1 file changed, 1 insertion(+) (limited to 'zencore/include') diff --git a/zencore/include/zencore/uid.h b/zencore/include/zencore/uid.h index 2730b1415..f095c49ef 100644 --- a/zencore/include/zencore/uid.h +++ b/zencore/include/zencore/uid.h @@ -60,6 +60,7 @@ struct Oid const Oid& Generate(); [[nodiscard]] static Oid FromHexString(const std::string_view String); StringBuilderBase& ToString(StringBuilderBase& OutString) const; + [[nodiscard]] static Oid FromMemory(const void* Ptr); auto operator<=>(const Oid& rhs) const = default; [[nodiscard]] inline operator bool() const { return *this == Zero; } -- cgit v1.2.3 From 14a9b3d70c39e9823bdd93b44c5bc7479062defd Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Thu, 16 Sep 2021 22:49:59 +0200 Subject: clang-format --- zencore/include/zencore/thread.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'zencore/include') diff --git a/zencore/include/zencore/thread.h b/zencore/include/zencore/thread.h index 0e34d6518..e65867ec4 100644 --- a/zencore/include/zencore/thread.h +++ b/zencore/include/zencore/thread.h @@ -128,7 +128,7 @@ private: }; /** Basic process abstraction - */ + */ class ProcessHandle { public: @@ -155,7 +155,7 @@ private: /** Process monitor - monitors a list of running processes via polling - Intended to be used to monitor a set of "sponsor" processes, where + Intended to be used to monitor a set of "sponsor" processes, where we need to determine when none of them remain alive */ -- cgit v1.2.3 From 6da25650aa4bf87dcd5e3d612c615e0b8240015f Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Fri, 17 Sep 2021 09:54:50 +0200 Subject: Added namespace scopes to more includes for better consistency --- zencore/include/zencore/zencore.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'zencore/include') diff --git a/zencore/include/zencore/zencore.h b/zencore/include/zencore/zencore.h index 54df7e85e..da17e61e3 100644 --- a/zencore/include/zencore/zencore.h +++ b/zencore/include/zencore/zencore.h @@ -150,12 +150,16 @@ char (&ZenArrayCountHelper(const T (&)[N]))[N + 1]; #define ZEN_NOT_IMPLEMENTED(...) ZEN_ASSERT(false, __VA_ARGS__) #define ZENCORE_API // Placeholder to allow DLL configs in the future +namespace zen { + ZENCORE_API bool IsPointerToStack(const void* ptr); // Query if pointer is within the stack of the currently executing thread ZENCORE_API bool IsApplicationExitRequested(); ZENCORE_API void RequestApplicationExit(int ExitCode); ZENCORE_API void zencore_forcelinktests(); +} + ////////////////////////////////////////////////////////////////////////// #if ZEN_COMPILER_MSC -- cgit v1.2.3