rtengine/src/runtime/handles.h
2024-01-16 16:10:56 +01:00

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