1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:17:36 +00:00

LibCore: Introduce Core::Environment wrapper

Core::System already had some wrappers for *env() functions, which I've
copied over. But 1) the set of functions there was incomplete, and 2)
the environment feels like an object in its own right, so let's treat it
as one. :^)

Also add `Core::Environment::has(StringView)` for situations where we
just care if a variable is defined.
This commit is contained in:
Sam Atkins 2024-02-26 11:23:14 +00:00 committed by Sam Atkins
parent 55dc69625a
commit b9dc2d7ebf
3 changed files with 251 additions and 0 deletions

View file

@ -8,6 +8,7 @@ set(SOURCES
DirectoryEntry.cpp
DirIterator.cpp
ElapsedTimer.cpp
Environment.cpp
Event.cpp
EventLoop.cpp
EventLoopImplementation.cpp