cpp.GC_boehm.cpp Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jtransc-rt Show documentation
Show all versions of jtransc-rt Show documentation
JVM AOT compiler currently generating JavaScript, C++, Haxe, with initial focus on Kotlin and games.
// //#define GC_DEBUG
// //#include
// //#include "gc_cpp.h"
#include "gc.h"
void GC_ADD_ROOT_SINGLE(void* ptr) {
GC_add_roots(ptr, (void *)((uintptr_t)ptr + sizeof(uintptr_t)));
}