1
0
forked from 0ad/0ad
0ad/source/lib/res/handle.h
janwas 836cd08d5e # add CppDoc file header to all files, along with their descriptions.
also:
- renamed wdll to delay_load, and wdll_ver to dll_ver
- removed empty wcpu

This was SVN commit r3751.
2006-04-11 23:59:08 +00:00

16 lines
466 B
C
Executable File

// define "Handle". split out of h_mgr.h to reduce dependencies.
#ifndef HANDLE_DEFINED
#define HANDLE_DEFINED
#include "lib/types.h"
// 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;
#endif // #ifndef HANDLE_DEFINED