doc/runtime.tex: Suggest asserting that a stack-allocated object tore down.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 5 Aug 2019 09:22:48 +0000 (10:22 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 5 Aug 2019 09:24:31 +0000 (10:24 +0100)
commit5ffbe7949e61a61451bb6ebedc5482e8568d7421
tree204b31e6dc547aa1db33e3124591d886bca207d0
parentbacf2ba6e7721b6953103f868ffaf2af2c5a817c
doc/runtime.tex: Suggest asserting that a stack-allocated object tore down.

As discussed, it's not an error in itself if an object refuses teardown:
that just means that you can forget about it and it's someone else's
problem now.  But if you really have to deallocate it right now, that's
not going to work.

It might be an idea to introduce a macro to say, essentially,

{ int rc = sod_teardown(OBJ); assert(!rc); }
doc/runtime.tex
lib/sod.3