Skip to content

Prevent source location in release build #1259

@matbech

Description

@matbech

#1185 added source information to the exception using C++20 (#ifdef __cpp_lib_source_location). Now, it may not be desirable to have source file paths strings included in release builds.

Can a facility be added which allows a user to control whether winrt adds source location to the exception?

Maybe through a new configuration define? e.g.
#define WINRT_NO_SOURCE_LOCATION

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