|
Revision 37723, 0.8 kB
(checked in by winebarrel, 3 years ago)
|
|
|
-
Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 | #ifndef __BAYONEXT_INTERNAL_H__ |
|---|
| 2 | #define __BAYONEXT_INTERNAL_H__ |
|---|
| 3 | |
|---|
| 4 | #ifdef PACKAGE_NAME |
|---|
| 5 | #undef PACKAGE_NAME |
|---|
| 6 | #endif |
|---|
| 7 | |
|---|
| 8 | #ifdef PACKAGE_TARNAME |
|---|
| 9 | #undef PACKAGE_TARNAME |
|---|
| 10 | #endif |
|---|
| 11 | |
|---|
| 12 | #ifdef PACKAGE_VERSION |
|---|
| 13 | #undef PACKAGE_VERSION |
|---|
| 14 | #endif |
|---|
| 15 | |
|---|
| 16 | #ifdef PACKAGE_STRING |
|---|
| 17 | #undef PACKAGE_STRING |
|---|
| 18 | #endif |
|---|
| 19 | |
|---|
| 20 | #ifdef PACKAGE_BUGREPORT |
|---|
| 21 | #undef PACKAGE_BUGREPORT |
|---|
| 22 | #endif |
|---|
| 23 | |
|---|
| 24 | #include <ruby.h> |
|---|
| 25 | |
|---|
| 26 | #ifndef RSTRING_PTR |
|---|
| 27 | #define RSTRING_PTR(s) (RSTRING(s)->ptr) |
|---|
| 28 | #endif |
|---|
| 29 | #ifndef RSTRING_LEN |
|---|
| 30 | #define RSTRING_LEN(s) (RSTRING(s)->len) |
|---|
| 31 | #endif |
|---|
| 32 | |
|---|
| 33 | #ifdef _WIN32 |
|---|
| 34 | #define __F(f) (reinterpret_cast<VALUE (__cdecl *)(...)>(f)) |
|---|
| 35 | #else |
|---|
| 36 | #define __F(f) (reinterpret_cast<VALUE (*)(...)>(f)) |
|---|
| 37 | #endif |
|---|
| 38 | |
|---|
| 39 | #ifdef _WIN32 |
|---|
| 40 | #define HAVE_GOOGLE_DENSE_HASH_MAP 1 |
|---|
| 41 | #endif |
|---|
| 42 | |
|---|
| 43 | extern "C" { |
|---|
| 44 | #ifdef _WIN32 |
|---|
| 45 | __declspec(dllexport) |
|---|
| 46 | #endif |
|---|
| 47 | void Init_bayonext(); |
|---|
| 48 | } |
|---|
| 49 | |
|---|
| 50 | #endif // __BAYONEXT_INTERNAL_H__ |
|---|