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:
- name (
StringSlice[StaticConstantOrigin]): The name of the define.
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:
- name (
StringSlice[StaticConstantOrigin]): The name of the define. - default (
StringSlice[StaticConstantOrigin]): The default value to use.
Returns:
StaticString: A string parameter value.