ViewVC Help
View File
|
Revision Log
|
Show Annotations
|
Download File
/
cvs
/
deliantra
/
dclient
/
include
/
adt
/
array_size.h
Revision:
1.1
Committed:
Mon Oct 18 06:53:54 2010 UTC
(13 years, 8 months ago) by
sf-pippijn
Content type:
text/plain
Branch:
MAIN
CVS Tags:
HEAD
Log Message:
gcc 4.5; moved some code; background colour support
File Contents
#
Content
1
#pragma once
2
3
template<typename T, unsigned long N>
4
char (&array_size (T const (&)[N]))[N];
5
6
#define array_size(array) (sizeof array_size (array))