Documentation Project 1
ContentsIndexHome
PreviousUpNext
sack::memory::NewArray Macro
C++
#define NewArray(type,count) ((type*)Allocate(sizeof(type)*(count)))
Parameters 
Description 
type 
type to determine size of array element to allocate. 
count 
count of elements to allocate in the array. 

A pointer to type. (this is important, since in C++ it's cast correctly to the destination type).

Allocate a new array of type.

Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!