Skip to content

Commit a3f8fc3

Browse files
committed
tests/type_confusion: add comments explaining what an impl would do (or an impl) for the dav1d API
1 parent 80ea729 commit a3f8fc3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/type_confusion/dav1d.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,21 @@ RUN: cat dav1d_call_gates_1.ld | FileCheck --check-prefix=LINKARGS %s
1010

1111
IA2_CONSTRUCTOR
1212
int dav1d_open(Dav1dContext *const this, const Dav1dSettings *const s) {
13+
// Initialize `this`; implementation omitted.
1314
return 0;
1415
}
1516

1617
IA2_DESTRUCTOR
1718
void dav1d_close(Dav1dContext *const this) {
18-
return;
19+
// Uninitialize `this`; implementation omitted.
1920
}
2021

2122
int dav1d_get_picture(Dav1dContext *const c, Dav1dPicture *const out) {
23+
// Implementation omitted.
2224
return 0;
2325
}
2426

2527
IA2_POST_CONDITION_FOR(dav1d_get_picture)
2628
void dav1d_get_picture_post_condition(Dav1dContext *const c, Dav1dPicture *const out) {
27-
return;
29+
assert(out->stride > 0);
2830
}

0 commit comments

Comments
 (0)