iode.macro
- iode.macro(name: str) str[source]
Get the value of an IODE macro.
- Parameters:
- name: str
Name of the macro to get.
- Returns:
- str
Value of the macro (as string).
See also
Examples
>>> from iode import define, macro >>> define("C", "1") >>> macro("C") '1' >>> # the following line raises a warning and returns None >>> # because the macro is not defined >>> macro("UNDEFINED_MACRO") is None True