Practice ยท 2 of 2
Opaque-Handle Factory Contract
Implement the extern "C"-style factory contract (linkage-free in this harness): wapiCreate/WapiDestroy manage an opaque handle, and the versioned WidgetApi table exposes only v1 calls. Destroy must be idempotent (destroying twice is a no-op, not a double free).
Difficulty: advanced
Press Submit to check your solution.
Back to lesson: Practice: Practice: ABI-Stable Patterns