def options(cdiv=False, inline=False):
    """Set behavioural options which affect the generated code.

    :param cdiv: Set ``True`` to match C behaviour when performing integer division.
    :param inline: Set ``True`` to always inline the function.

    """
    def wrapper(decl):
        decl.options.update(cdiv=cdiv, inline=inline)
        return decl
    return wrapper