Holds event related functions.
More...
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "util/u_misc.h"
#include "oxr_objects.h"
#include "oxr_logger.h"
|
#define | ALLOC(log, inst, event, extra) |
|
Holds event related functions.
- Author
- Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m
◆ ALLOC
#define ALLOC |
( |
|
log, |
|
|
|
inst, |
|
|
|
event, |
|
|
|
extra |
|
) |
| |
Value:do { \
XrResult ret = \
oxr_event_alloc(log, inst, sizeof(**extra), event); \
if (ret != XR_SUCCESS) { \
return ret; \
} \
*((void **)extra) = oxr_event_extra(*event); \
} while (false)