Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 8 additions & 18 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -191,16 +191,16 @@ jobs:

- name: Test IL2CPP runtime helpers
run: |
xmake build -y il2cpp-runtime-tests
xmake build -y il2cpp-bindings-tests
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
xmake run il2cpp-runtime-tests
xmake run il2cpp-bindings-tests
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }

- name: Test IL2CPP class lookup
run: |
xmake build -y il2cpp-class-lookup-tests
xmake build -y il2cpp-gc-tests
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
xmake run il2cpp-class-lookup-tests
xmake run il2cpp-gc-tests
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }

- name: Build
Expand All @@ -225,11 +225,6 @@ jobs:
"build/windows/x64/release/stfc-community-mod.dll" `
"version.dll"

- name: Test checked IL2CPP helpers
run: |
xmake build -y il2cpp-checked-tests
xmake run il2cpp-checked-tests

- name: Verify DLL provenance
shell: pwsh
run: |
Expand Down Expand Up @@ -500,13 +495,13 @@ jobs:

- name: Test IL2CPP runtime helpers
run: |
xmake build -y il2cpp-runtime-tests
xmake run il2cpp-runtime-tests
xmake build -y il2cpp-bindings-tests
xmake run il2cpp-bindings-tests

- name: Test IL2CPP class lookup
run: |
xmake build -y il2cpp-class-lookup-tests
xmake run il2cpp-class-lookup-tests
xmake build -y il2cpp-gc-tests
xmake run il2cpp-gc-tests

- name: Build
# -D keeps the existing XMake compiler-cache diagnostics too.
Expand Down Expand Up @@ -535,11 +530,6 @@ jobs:
echo "::warning::Swift module cache directory was not created"
fi

- name: Test checked IL2CPP helpers
run: |
xmake build -y il2cpp-checked-tests
xmake run il2cpp-checked-tests

- name: Verify portable macOS linkage
shell: bash
run: |
Expand Down
File renamed without changes.
35 changes: 35 additions & 0 deletions libs/il2cpp/include/il2cpp/api.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#pragma once

#ifdef _WIN32
#pragma comment(lib, "GameAssembly.lib")
#endif

#include <il2cpp-api-types.h>
#include <il2cpp-class-internals.h>
#include <il2cpp-config.h>
#include <il2cpp-object-internals.h>

#if defined(__cplusplus)
extern "C" {
#endif // __cplusplus
#if _WIN32
#define DO_API(r, n, p) IL2CPP_IMPORT r n p;
#define DO_API_NO_RETURN(r, n, p) IL2CPP_IMPORT NORETURN r n p;
#else
#define DO_API(r, n, p) \
using n##_t = r(*) p; \
extern n##_t n;
#define DO_API_NO_RETURN(r, n, p) DO_API(r, n, p)
#endif
#include "il2cpp-api-functions.h"
#undef DO_API
#undef DO_API_NO_RETURN
#if defined(__cplusplus)
}
#endif // __cplusplus

namespace il2cpp
{
// Bind macOS exports from the already loaded GameAssembly image. Windows uses imports.
void Initialize(void* assembly);
} // namespace il2cpp
Loading
Loading