diff options
Diffstat (limited to 'include/handling.h')
-rw-r--r-- | include/handling.h | 9 |
1 files changed, 9 insertions, 0 deletions
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); +} + |