[Embedder API] Add 'array of pointers' guidance (flutter/engine#39804)

[Embedder API] Add 'array of pointers' guidance
This commit is contained in:
Loïc Sharma
2023-02-28 15:04:11 -08:00
committed by GitHub
parent e5c0088683
commit d61238974c

View File

@@ -25,6 +25,9 @@
// - Function signatures (names, argument counts, argument order, and argument
// type) cannot change.
// - The core behavior of existing functions cannot change.
// - Instead of array of structures, prefer array of pointers to structures.
// This ensures that array indexing does not break if members are added
// to the structure.
//
// These changes are allowed:
// - Adding new struct members at the end of a structure.