Skip to content

Instantly share code, notes, and snippets.

Avatar

Tomohiro Suzuki TomohiroSuzuki128

View GitHub Profile
@TomohiroSuzuki128
TomohiroSuzuki128 / registrar.m
Created Dec 22, 2019
registrar.m (Xamarin.Forms)
View registrar.m
#include <xamarin/xamarin.h>
#include "registrar.h"
extern "C" {
static id native_to_managed_trampoline_1 (id self, SEL _cmd, MonoMethod **managed_method_ptr, bool* call_super, uint32_t token_ref)
{
uint8_t flags = NSObjectFlagsNativeRef;
guint32 exception_gchandle = 0;
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [0];
MONO_ASSERT_GC_SAFE;
@TomohiroSuzuki128
TomohiroSuzuki128 / registrar.m
Last active Jan 4, 2020
registrar.m (Uno Platform)
View registrar.m
#include <xamarin/xamarin.h>
#include "registrar.h"
extern "C" {
static id native_to_managed_trampoline_1 (id self, SEL _cmd, MonoMethod **managed_method_ptr, bool* call_super, uint32_t token_ref)
{
uint8_t flags = NSObjectFlagsNativeRef;
guint32 exception_gchandle = 0;
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [0];
MONO_ASSERT_GC_SAFE;