docs: clarify static ptrs

This commit is contained in:
Vaxry 2024-02-15 02:27:27 +00:00
parent 4a464738e2
commit 5a4768244b
1 changed files with 3 additions and 0 deletions

View File

@ -204,6 +204,9 @@ namespace Hyprlang {
Return a static pointer to the m_pData. Return a static pointer to the m_pData.
As long as this configValue is alive, this pointer is valid. As long as this configValue is alive, this pointer is valid.
CConfigValues are alive as long as the owning CConfig is alive. CConfigValues are alive as long as the owning CConfig is alive.
Please note only the first (outer) pointer is static. The second
may (and most likely will) be changing.
*/ */
void* const* getDataStaticPtr() const; void* const* getDataStaticPtr() const;