Skip to content

A value-like macro binding that isn't constant should not be a static readonly field, it should be a static readonly property #833

Description

@Happypig375

This macro (source)

#define B3_HUGE ( 1.0e9f * b3GetLengthUnitsPerMeter() )

generates

    [NativeTypeName("#define B3_HUGE ( 1.0e5f * b3GetLengthUnitsPerMeter() )")]
    public static readonly float B3_HUGE = (1.0e5f * b3GetLengthUnitsPerMeter());

but b3GetLengthUnitsPerMeter() can change during runtime.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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