forked from focus-creative-games/il2cpp_plus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathil2cpp-codegen-tiny.cpp
More file actions
38 lines (29 loc) · 849 Bytes
/
il2cpp-codegen-tiny.cpp
File metadata and controls
38 lines (29 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include "il2cpp-config.h"
#if RUNTIME_TINY
#include "il2cpp-codegen.h"
#include "vm/StackTrace.h"
#include "vm/LastError.h"
#include <string>
void il2cpp_codegen_stacktrace_push_frame(TinyStackFrameInfo& frame)
{
tiny::vm::StackTrace::PushFrame(frame);
}
void il2cpp_codegen_stacktrace_pop_frame()
{
tiny::vm::StackTrace::PopFrame();
}
void il2cpp_codegen_marshal_store_last_error()
{
tiny::vm::LastError::StoreLastError();
}
NORETURN void il2cpp_codegen_raise_generic_virtual_method_exception(const char* methodFullName)
{
std::string message;
message = "Tiny does not support generic virtual method invocation. ";
message += "The method being invoked is: '";
message += methodFullName;
message += "'";
il2cpp_codegen_raise_execution_engine_exception(message.c_str());
IL2CPP_UNREACHABLE;
}
#endif