Skip to content

Commit 47ba98d

Browse files
committed
Added void darr_destroy_all
1 parent b8b5930 commit 47ba98d

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

DynamicArray/DynamicArray.cpp

210 Bytes
Binary file not shown.

DynamicArray/DynamicArray.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,6 @@ DLLFUNC_C bool darr_reserve(int handle, int nSize);
4444
// Returns true if completed, false if handle not recognized.
4545
DLLFUNC_C bool darr_destroy(int handle);
4646

47+
// De-allocates **all** dynamic vectors from memory.
48+
// After this function, **all handles** will no longer be recognized.
49+
DLLFUNC_C void darr_destroy_all(int handle);

zorro_folder/include/dynamic.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,8 @@ API(darr_reserve,DynamicArray)
4747
// Returns true if completed, false if handle not recognized.
4848
bool __cdecl darr_destroy(int handle);
4949
API(darr_destroy,DynamicArray)
50+
51+
// De-allocates **all** dynamic vectors from memory.
52+
// After this function, **all handles** will no longer be recognized.
53+
void __cdecl darr_destroy_all(int handle);
54+
API(darr_destroy_all,DynamicArray)

0 commit comments

Comments
 (0)