|
|
@ -77,11 +77,11 @@ |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#define UNWRAPPED_PROTO(x) (GLAPIENTRY *x) |
|
|
|
#define UNWRAPPED_PROTO(x) (GLAPIENTRY *x) |
|
|
|
#define WRAPPER_VISIBILITY static GLAPIENTRY |
|
|
|
#define WRAPPER_VISIBILITY(type) static type GLAPIENTRY |
|
|
|
#define WRAPPER(x) x ## _wrapped |
|
|
|
#define WRAPPER(x) x ## _wrapped |
|
|
|
|
|
|
|
|
|
|
|
#define GEN_GLOBAL_REWRITE_PTR(name, args, passthrough) \ |
|
|
|
#define GEN_GLOBAL_REWRITE_PTR(name, args, passthrough) \ |
|
|
|
static EPOXY_CALLSPEC void \
|
|
|
|
static void EPOXY_CALLSPEC \
|
|
|
|
name##_global_rewrite_ptr args \
|
|
|
|
name##_global_rewrite_ptr args \
|
|
|
|
{ \
|
|
|
|
{ \
|
|
|
|
name = (void *)name##_resolver(); \
|
|
|
|
name = (void *)name##_resolver(); \
|
|
|
@ -89,7 +89,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#define GEN_GLOBAL_REWRITE_PTR_RET(ret, name, args, passthrough) \ |
|
|
|
#define GEN_GLOBAL_REWRITE_PTR_RET(ret, name, args, passthrough) \ |
|
|
|
static EPOXY_CALLSPEC ret \
|
|
|
|
static ret EPOXY_CALLSPEC \
|
|
|
|
name##_global_rewrite_ptr args \
|
|
|
|
name##_global_rewrite_ptr args \
|
|
|
|
{ \
|
|
|
|
{ \
|
|
|
|
name = (void *)name##_resolver(); \
|
|
|
|
name = (void *)name##_resolver(); \
|
|
|
@ -98,7 +98,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
#if USING_DISPATCH_TABLE |
|
|
|
#if USING_DISPATCH_TABLE |
|
|
|
#define GEN_DISPATCH_TABLE_REWRITE_PTR(name, args, passthrough) \ |
|
|
|
#define GEN_DISPATCH_TABLE_REWRITE_PTR(name, args, passthrough) \ |
|
|
|
static EPOXY_CALLSPEC void \
|
|
|
|
static void EPOXY_CALLSPEC \
|
|
|
|
name##_dispatch_table_rewrite_ptr args \
|
|
|
|
name##_dispatch_table_rewrite_ptr args \
|
|
|
|
{ \
|
|
|
|
{ \
|
|
|
|
struct dispatch_table *dispatch_table = get_dispatch_table(); \
|
|
|
|
struct dispatch_table *dispatch_table = get_dispatch_table(); \
|
|
|
@ -108,7 +108,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#define GEN_DISPATCH_TABLE_REWRITE_PTR_RET(ret, name, args, passthrough) \ |
|
|
|
#define GEN_DISPATCH_TABLE_REWRITE_PTR_RET(ret, name, args, passthrough) \ |
|
|
|
static EPOXY_CALLSPEC ret \
|
|
|
|
static ret EPOXY_CALLSPEC \
|
|
|
|
name##_dispatch_table_rewrite_ptr args \
|
|
|
|
name##_dispatch_table_rewrite_ptr args \
|
|
|
|
{ \
|
|
|
|
{ \
|
|
|
|
struct dispatch_table *dispatch_table = get_dispatch_table(); \
|
|
|
|
struct dispatch_table *dispatch_table = get_dispatch_table(); \
|
|
|
@ -118,14 +118,14 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#define GEN_DISPATCH_TABLE_THUNK(name, args, passthrough) \ |
|
|
|
#define GEN_DISPATCH_TABLE_THUNK(name, args, passthrough) \ |
|
|
|
static EPOXY_CALLSPEC void \
|
|
|
|
static void EPOXY_CALLSPEC \
|
|
|
|
name##_dispatch_table_thunk args \
|
|
|
|
name##_dispatch_table_thunk args \
|
|
|
|
{ \
|
|
|
|
{ \
|
|
|
|
get_dispatch_table()->name passthrough; \
|
|
|
|
get_dispatch_table()->name passthrough; \
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#define GEN_DISPATCH_TABLE_THUNK_RET(ret, name, args, passthrough) \ |
|
|
|
#define GEN_DISPATCH_TABLE_THUNK_RET(ret, name, args, passthrough) \ |
|
|
|
static EPOXY_CALLSPEC ret \
|
|
|
|
static ret EPOXY_CALLSPEC \
|
|
|
|
name##_dispatch_table_thunk args \
|
|
|
|
name##_dispatch_table_thunk args \
|
|
|
|
{ \
|
|
|
|
{ \
|
|
|
|
return get_dispatch_table()->name passthrough; \
|
|
|
|
return get_dispatch_table()->name passthrough; \
|
|
|
|