iode.define

iode.define(name: str, macro: str)[source]

Define an IODE macro.

Parameters:
name: str

Name of the macro to define.

macro: str

Macro value.

See also

macro

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