Skip to content

Investigate function parameter validation for public Engine API #2529

Open
@mvaligursky

Description

@mvaligursky

To help engine customers catch issues early instead of getting unhandled exceptions / undefined behavior, we should consider validating parameters passed into public API functions / possibly some internal functions.

Validation:

  • should run in the debug mode only to not impact performance
  • could be specified outside of the function and code generated in debug mode to do validation
  • ideally without having to add #ifdef
  • unified approach with unified error reporting
  • ideally should check parameter types, unexpected null / undefined parameters and similar

And likely some other validations - please add comments with ideas and suggestions on how this could be implemented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions