12 lines
285 B
C
12 lines
285 B
C
#ifndef RT_HANDLES_H
|
|
#define RT_HANDLES_H
|
|
|
|
/* All handle types should contain a uint32_t index */
|
|
|
|
#define RT_INVALID_HANDLE \
|
|
{ .index = 0 }
|
|
|
|
#define RT_IS_HANDLE_VALID(handle) ((handle).index != 0)
|
|
|
|
#endif
|