docs: document configvalue's special STRING storage

This commit is contained in:
Vaxry 2024-02-15 02:58:26 +00:00
parent 61507d1b87
commit b0e3a884f5

View file

@ -207,6 +207,12 @@ namespace Hyprlang {
Please note only the first (outer) pointer is static. The second Please note only the first (outer) pointer is static. The second
may (and most likely will) be changing. may (and most likely will) be changing.
For all types except STRING typeof(**retval) is the config value type
(e.g. INT or FLOAT)
Please note STRING is a special type and instead of
typeof(**retval) being const char*, typeof(\*retval) is a const char*.
*/ */
void* const* getDataStaticPtr() const; void* const* getDataStaticPtr() const;