30 lines
827 B
C
30 lines
827 B
C
#pragma once
|
|
|
|
#include "os/c-api/il2cpp-config-platforms.h"
|
|
#include "os/c-api/il2cpp-config-api-platforms.h"
|
|
#include "il2cpp-api-types.h"
|
|
|
|
// If the platform loads il2cpp as a dynamic library but does not have dlsym (or equivalent) then
|
|
// define IL2CPP_API_DYNAMIC_NO_DLSYM = 1 to add support for api function registration and symbol
|
|
// lookup APIs, see il2cpp-api.cpp
|
|
#ifndef IL2CPP_API_DYNAMIC_NO_DLSYM
|
|
#define IL2CPP_API_DYNAMIC_NO_DLSYM 0
|
|
#endif
|
|
|
|
/* Profiler */
|
|
#ifndef IL2CPP_ENABLE_PROFILER
|
|
#define IL2CPP_ENABLE_PROFILER 1
|
|
#endif
|
|
|
|
#if IL2CPP_COMPILER_MSVC || defined(__ARMCC_VERSION)
|
|
#define NORETURN __declspec(noreturn)
|
|
#else
|
|
#define NORETURN
|
|
#endif
|
|
|
|
#if IL2CPP_TARGET_IOS || IL2CPP_TARGET_ANDROID || IL2CPP_TARGET_DARWIN
|
|
#define REAL_NORETURN __attribute__ ((noreturn))
|
|
#else
|
|
#define REAL_NORETURN NORETURN
|
|
#endif
|