mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-02 08:01:11 +03:00
21 lines
588 B
C++
21 lines
588 B
C++
#include <cstddef>
|
|
|
|
struct Context;
|
|
|
|
extern "C" {
|
|
|
|
// Silence missing-variable-declaration clang warning
|
|
extern void *runtimecompile_modules_head;
|
|
|
|
void *runtimecompile_modules_head = nullptr;
|
|
#ifdef _WIN32
|
|
__declspec(dllimport)
|
|
#endif
|
|
extern void rtCompileProcessImplSo(const void *modlist_head,
|
|
const Context *context,
|
|
std::size_t contextSize);
|
|
|
|
void rtCompileProcessImpl(const Context *context, std::size_t contextSize) {
|
|
rtCompileProcessImplSo(runtimecompile_modules_head, context, contextSize);
|
|
}
|
|
}
|