mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-06 15:05:47 -07:00
improvements from work: - no longer export classes; instead inline functions where it makes sense (e.g. the scope timers) or export the member functions directly - fix icc11 warnings - add some comments This was SVN commit r6531.
29 lines
921 B
C
29 lines
921 B
C
/**
|
|
* =========================================================================
|
|
* File : handle.h
|
|
* Project : 0 A.D.
|
|
* Description : forward declaration of Handle (reduces dependencies)
|
|
* =========================================================================
|
|
*/
|
|
|
|
// license: GPL; see lib/license.txt
|
|
|
|
#ifndef INCLUDED_HANDLE
|
|
#define INCLUDED_HANDLE
|
|
|
|
#include "lib/file/vfs/vfs_path.h"
|
|
|
|
/**
|
|
* `handle' representing a reference to a resource (sound, texture, etc.)
|
|
*
|
|
* 0 is the (silently ignored) invalid handle value; < 0 is an error code.
|
|
*
|
|
* this is 64 bits because we want tags to remain unique. (tags are a
|
|
* counter that disambiguate several subsequent uses of the same
|
|
* resource array slot). 32-bit handles aren't enough because the index
|
|
* field requires at least 12 bits, thus leaving only about 512K possible
|
|
* tag values.
|
|
**/
|
|
typedef i64 Handle;
|
|
|
|
#endif // #ifndef INCLUDED_HANDLE
|