StringToMode function
Converts string to build mode identifier
Declaration
function StringToMode(const S: string): TCompilerModeArguments
S | String representation of build mode |
Function result
Build mode identifier from string
Description
StringToMode converts a string representation of a build mode to its corresponding identifier enumeration.
This function enables parsing of build mode names from configuration files and command-line parameters.
The function supports standard build mode names such as debug, release, and custom modes, providing error handling for invalid or unrecognized mode strings.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
