b91129c03dc978eb14e75540295b42ba0c16d6f8
[iec.git] / src / type3_AndroidCloud / anbox-master / external / android-emugl / host / tools / emugen / tests / t.001 / expected / encoder / foo_entry.cpp
1 // Generated Code - DO NOT EDIT !!
2 // generated by 'emugen'
3 #include <stdio.h>
4 #include <stdlib.h>
5 #include "foo_client_context.h"
6
7 #ifndef GL_TRUE
8 extern "C" {
9         void fooAlphaFunc(FooInt func, FooFloat ref);
10         FooBoolean fooIsBuffer(void* stuff);
11         void fooUnsupported(void* params);
12         void fooDoEncoderFlush(FooInt param);
13         void fooTakeConstVoidPtrConstPtr(const void* const* param);
14 };
15
16 #endif
17 #ifndef GET_CONTEXT
18 static foo_client_context_t::CONTEXT_ACCESSOR_TYPE *getCurrentContext = NULL;
19 void foo_client_context_t::setContextAccessor(CONTEXT_ACCESSOR_TYPE *f) { getCurrentContext = f; }
20 #define GET_CONTEXT foo_client_context_t * ctx = getCurrentContext()
21 #endif
22
23 void fooAlphaFunc(FooInt func, FooFloat ref)
24 {
25         GET_CONTEXT;
26         ctx->fooAlphaFunc(ctx, func, ref);
27 }
28
29 FooBoolean fooIsBuffer(void* stuff)
30 {
31         GET_CONTEXT;
32          if (n == NULL) { LOG(ERROR) << "NULL stuff"; return; }
33         return ctx->fooIsBuffer(ctx, stuff);
34 }
35
36 void fooUnsupported(void* params)
37 {
38         GET_CONTEXT;
39         ctx->fooUnsupported(ctx, params);
40 }
41
42 void fooDoEncoderFlush(FooInt param)
43 {
44         GET_CONTEXT;
45         ctx->fooDoEncoderFlush(ctx, param);
46 }
47
48 void fooTakeConstVoidPtrConstPtr(const void* const* param)
49 {
50         GET_CONTEXT;
51         ctx->fooTakeConstVoidPtrConstPtr(ctx, param);
52 }
53