corda/classpath/classpath.cpp

26 lines
520 B
C++
Raw Normal View History

#include "stdint.h"
#ifdef __MINGW32__
# define EXPORT __declspec(dllexport)
2007-10-26 21:02:39 +00:00
# define SYMBOL(x) binary_classpath_jar_##x
#else
# define EXPORT __attribute__ ((visibility("default")))
2007-10-26 21:02:39 +00:00
# define SYMBOL(x) _binary_classpath_jar_##x
#endif
extern "C" {
#ifndef __APPLE__
2007-10-26 21:02:39 +00:00
extern const uint8_t SYMBOL(start)[];
extern const uint8_t SYMBOL(size)[];
2007-10-26 21:02:39 +00:00
EXPORT const uint8_t*
vmClasspath(unsigned* size)
{
*size = reinterpret_cast<uintptr_t>(SYMBOL(size));
return SYMBOL(start);
}
#endif
} // extern "C"