Documentation Project 1
ContentsIndexHome
PreviousUpNext
sack::containers::AddDataItem Macro
C++
#define AddDataItem(list,data) (((list)&&(*(list)))?SetDataItemEx((list),(*list)->Cnt,data DBG_SRC ):NULL)

Adds an item to a DataList.

PDATALIST datalist = CreateDataList();
   
struct my_struct {
    _32 my_data;
}
   
struct my_struct my_item;
my_item.my_data = 0;
   
   
AddDataItem( &datalist, &my_item );
   
Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!