Skip to content

need InitDefaultData that initializes a TypeRef with the default-default data for the type #601

@siddhukrs

Description

@siddhukrs

Calling InitData on a local remembers the user-defined default data for local and sets the data to that value. We need a similar InitDefaultData that can set the default-default value of the type as the value. For instance, 0 for numerics and '' for strings.

It should do something like this

TypeRef t = outputType; while (t->HasCustomDefault()) { t = t->BaseType(); } t->InitData(outputData);

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