blob: 7a3c540ebdb3c6c946b7b55457d2aaa9ddf91074 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
{$ifdef NDS_INTERFACE}
type
DynamicArray = record
data: ppointer; // pointer to array of void pointers
cur_size: cuint; // currently allocated size of the array
end;
TDynamicArray = DynamicArray;
PDynamicArray = ^TDynamicArray;
function DynamicArrayInit(v: PDynamicArray; initialSize: cuint): pointer; cdecl; external;
procedure DynamicArrayDelete(v: PDynamicArray); cdecl; external;
function DynamicArrayGet(v: PDynamicArray; index: cuint): pointer; cdecl; external;
function DynamicArraySet(v: PDynamicArray; index: cuint; item: pointer): cbool; cdecl; external;
{$endif NDS_INTERFACE}
|