IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /docs/manual/basics.md). For the complete Mojo documentation index, see llms.txt.
Skip to main content
Version: 1.0
For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).

get_defined_string

get_defined_string[name: StringSlice[StaticConstantOrigin]]() -> StaticString

Try to get a string-valued define. Compilation fails if the name is not defined.

Parameters:

Returns:

StaticString: A string parameter value.

get_defined_string[name: StringSlice[StaticConstantOrigin], default: StringSlice[StaticConstantOrigin]]() -> StaticString

Try to get a string-valued define. If the name is not defined, return a default value instead.

Parameters:

Returns:

StaticString: A string parameter value.