Skip to content

Constify context pointer in ffxConfigure/ffxQuery/ffxDispatch? #179

@MarijnS95

Description

@MarijnS95

ffxContext is already defined as a mutable void pointer:

typedef void* ffxContext;

Only ffxCreateContext() and ffxDestroyContext() are documented to update the value of this pointer, and must hence take a mutable pointer to ffxContext.

The other functions -ffxConfigure/ffxQuery/ffxDispatch- don't seem to need to update it to a different context, hence could/should take the ffxContext by value or at the very least be made an immutable (const) pointer?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions