From 6258a82af556285658a542876175b04039cd2707 Mon Sep 17 00:00:00 2001 From: Richard Knight Date: Sun, 18 Sep 2022 21:56:26 +0100 Subject: jsongetval added; deinit incorporated but not used as counterproductive for globals etc --- include/handling.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') diff --git a/include/handling.h b/include/handling.h index c5e0691..2eed1f6 100644 --- a/include/handling.h +++ b/include/handling.h @@ -50,4 +50,13 @@ MYFLT createHandle(csnd::Csound* csound, T** data, const char* name) { return FL(handle); } +/* + * Destroy global object + */ +void destroyHandle(csnd::Csound* csound, MYFLT handle, const char* name) { + char buffer[32]; + snprintf(buffer, 32, handleIdentifier, name, (int)handle); + csound->destroy_global_variable(buffer); +} + -- cgit v1.2.3