From aa58c5f519a6f564838245c1e271568bcaf89e27 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Thu, 18 Feb 2016 22:26:37 -0600 Subject: [PATCH] Declare VMFunction::Proto to the garbage collector --- src/zscript/vm.h | 1 + src/zscript/vmframe.cpp | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/zscript/vm.h b/src/zscript/vm.h index ce5d5269af..f92906fd21 100644 --- a/src/zscript/vm.h +++ b/src/zscript/vm.h @@ -158,6 +158,7 @@ enum class VMFunction : public DObject { DECLARE_ABSTRACT_CLASS(VMFunction, DObject); + HAS_OBJECT_POINTERS; public: bool Native; FName Name; diff --git a/src/zscript/vmframe.cpp b/src/zscript/vmframe.cpp index 82affc0531..ecf2511fb2 100644 --- a/src/zscript/vmframe.cpp +++ b/src/zscript/vmframe.cpp @@ -2,7 +2,9 @@ #include "vm.h" IMPLEMENT_CLASS(VMException) -IMPLEMENT_ABSTRACT_CLASS(VMFunction) +IMPLEMENT_ABSTRACT_POINTY_CLASS(VMFunction) + DECLARE_POINTER(Proto) +END_POINTERS IMPLEMENT_CLASS(VMScriptFunction) IMPLEMENT_CLASS(VMNativeFunction)