diff options
author | Richard Knight <q@1bpm.net> | 2022-09-18 21:56:26 +0100 |
---|---|---|
committer | Richard Knight <q@1bpm.net> | 2022-09-18 21:56:26 +0100 |
commit | 6258a82af556285658a542876175b04039cd2707 (patch) | |
tree | e0afa33dfa1b9c7a6ab19090297dbf41e1d686d1 /include | |
parent | 05a9a94ba5af5f7efa1fbc7acc2f4045ad13f5f6 (diff) | |
download | csound-json-6258a82af556285658a542876175b04039cd2707.tar.gz csound-json-6258a82af556285658a542876175b04039cd2707.tar.bz2 csound-json-6258a82af556285658a542876175b04039cd2707.zip |
jsongetval added; deinit incorporated but not used as counterproductive for globals etcv1.2
Diffstat (limited to 'include')
-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); +} + |