Codemesh Runtime v3 C++ API Reference
3.9.205
Builds
codegen
junc++ion-4.8.430
cpp
v3
include
xmog-config-darwin.h
1
//
2
// Copyright (c) 1999-2020 by Codemesh, Inc.. ALL RIGHTS RESERVED.
3
//
4
5
6
#include <string.h>
7
#include <stdlib.h>
8
#include <stddef.h>
9
10
11
#define XMOG_OS_CODE "macosx"
12
13
14
#if defined(__GNUC__)
15
# include "xmog-config-darwin-gcc.h"
16
#endif
17
18
19
// on Linux, we ask for wide character support
20
#ifndef ACE_HAS_WCHAR
21
# define ACE_HAS_WCHAR
22
#endif
23
24
25
// the return type of the function type that is passed to thread spawn factory
26
typedef
void
* XMOG_THREAD_FUNC_RETURN;
27
// the macro declaring a variable of thread func return type
28
#define XMOG_THREAD_FUNC_RETURN_DECL(x) void * x = NULL;
29
// the macro declaring a thread func return statement
30
#define XMOG_THREAD_FUNC_RETURN_STMT(x) return (void*)(x);
31
32
33
// it seems g++ does not understand __cdecl
34
#define XMOG_CALLING_CONVENTION
35
36
37
38
#define XMOG_ATEXIT_MODIFIER
39
40
41
// the method we use for tolower
42
#define XMOG_TOLOWER ACE_OS::ace_tolower
43
44
45
#define XMOG_FILE_SEPARATOR '/'
46
#define XMOG_FILE_SEPARATOR_STR "/"
47
#define XMOG_PATH_SEPARATOR ':'
48
#define XMOG_PATH_SEPARATOR_STR ":"
49
#define LINE_SEP "\n"
50
#define ENV_SEARCH_PATH "LD_LIBRARY_PATH"
51
#define JVM_NAME "libjvm.dylib"
52
#if defined(__ppc__) || defined(_ARCH_PPC) || defined(__powerpc__)
53
# define XMOG_JVM_ARCH "powerpc"
54
#elif defined(__i386__) || defined(i386)
55
# define XMOG_JVM_ARCH "i386"
56
#elif defined(__amd64__) || defined(__amd64) || defined(__x86_64__)
57
# define XMOG_JVM_ARCH "amd64"
58
#else
59
# define XMOG_JVM_ARCH ""
60
#endif
61
#if defined(__LP64) || defined(_LP64) || defined(LP64)
62
# define XMOG_NEW_DIFF_TYPE jlong
63
#else
64
# define XMOG_NEW_DIFF_TYPE jint
65
#endif
66
Copyright (c) 1999-2020 by Codemesh, Inc., ALL RIGHTS RESERVED.