TYPE3
[iec.git] / src / type3_AndroidCloud / anbox-master / external / android-emugl / host / tools / emugen / tests / t.001 / expected / wrapper / foo_wrapper_entry.cpp
1 // Generated Code - DO NOT EDIT !!
2 // generated by 'emugen'
3 #include <stdio.h>
4 #include <stdlib.h>
5 #include "foo_wrapper_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_wrapper_context_t::CONTEXT_ACCESSOR_TYPE *getCurrentContext = NULL;
19 void foo_wrapper_context_t::setContextAccessor(CONTEXT_ACCESSOR_TYPE *f) { getCurrentContext = f; }
20 #define GET_CONTEXT foo_wrapper_context_t * ctx = getCurrentContext()
21 #endif
22
23 void fooAlphaFunc(FooInt func, FooFloat ref)
24 {
25         GET_CONTEXT;
26         ctx->fooAlphaFunc( func, ref);
27 }
28
29 FooBoolean fooIsBuffer(void* stuff)
30 {
31         GET_CONTEXT;
32         return ctx->fooIsBuffer( stuff);
33 }
34
35 void fooUnsupported(void* params)
36 {
37         GET_CONTEXT;
38         ctx->fooUnsupported( params);
39 }
40
41 void fooDoEncoderFlush(FooInt param)
42 {
43         GET_CONTEXT;
44         ctx->fooDoEncoderFlush( param);
45 }
46
47 void fooTakeConstVoidPtrConstPtr(const void* const* param)
48 {
49         GET_CONTEXT;
50         ctx->fooTakeConstVoidPtrConstPtr( param);
51 }
52