Debian Codegraph @

examples/mqueue-cpp/mqueue_glue.h

raw
1 //
2 // mqueue_glue.h
3 //
4 // The mqueue-cpp extension module to show how to embed external C++
5 // library in Gauche.
6 // This file works as a 'glue' between the external C++ library
7 // (mqueue.h, mqueue.cpp) and Gauche extension. If you're writing
8 // a bridge for the third party C++ library, the contents of this
9 // file is the stuff you're supposed to write.
10 //
11
12 #include <gauche.h>
13 #include <gauche/extend.h>
14
15 #include "mqueue.h"
16
17 SCM_DECL_BEGIN // start "C" linkage
18
19 extern ScmClass *MQueueClass;
20
21 #define MQUEUE_P(obj) SCM_XTYPEP(obj, MQueueClass)
22 #define MQUEUE_UNBOX(obj) SCM_FOREIGN_POINTER_REF(MQueue*, obj)
23 #define MQUEUE_BOX(ptr) Scm_MakeForeignPointer(MQueueClass, ptr)
24
25 extern void Scm_Init_mqueue_cpp();
26 extern void Scm_Init_mqueue_lib();
27
28 SCM_DECL_END