1
0
mirror of https://github.com/Zygo/bees.git synced 2025-08-02 22:03:29 +02:00

crucible: add cleanup class

Store a function (or closure) in an instance and invoke the function
from the destructor.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
Zygo Blaxell
2017-10-01 15:52:15 -04:00
parent 6d6aedd8ec
commit 8a68b5f20b
3 changed files with 37 additions and 1 deletions

View File

@@ -3,8 +3,9 @@ TAG := $(shell git describe --always --dirty || echo UNKNOWN)
default: libcrucible.so
OBJS = \
crc64.o \
chatter.o \
cleanup.o \
crc64.o \
error.o \
extentwalker.o \
fd.o \