2007-05-08 17:11:53 +02:00
|
|
|
/**
|
|
|
|
* =========================================================================
|
|
|
|
* File : handle.h
|
|
|
|
* Project : 0 A.D.
|
|
|
|
* Description : forward declaration of Handle (reduces dependencies)
|
|
|
|
* =========================================================================
|
|
|
|
*/
|
|
|
|
|
|
|
|
// license: GPL; see lib/license.txt
|
2005-01-07 02:16:43 +01:00
|
|
|
|
2007-01-01 22:25:47 +01:00
|
|
|
#ifndef INCLUDED_HANDLE
|
|
|
|
#define INCLUDED_HANDLE
|
2004-10-06 16:00:43 +02:00
|
|
|
|
|
|
|
// 0 = invalid handle value; < 0 is an error code.
|
|
|
|
// 64 bits, because we want tags to remain unique: tag overflow may
|
|
|
|
// let handle use errors slip through, or worse, cause spurious errors.
|
|
|
|
// with 32 bits, we'd need >= 12 for the index, leaving < 512K tags -
|
|
|
|
// not a lot.
|
|
|
|
typedef i64 Handle;
|
2005-01-07 02:16:43 +01:00
|
|
|
|
2007-01-01 22:25:47 +01:00
|
|
|
#endif // #ifndef INCLUDED_HANDLE
|