Declare VMFunction::Proto to the garbage collector

This commit is contained in:
Randy Heit 2016-02-18 22:26:37 -06:00
parent eace79ccad
commit aa58c5f519
2 changed files with 4 additions and 1 deletions

View file

@ -158,6 +158,7 @@ enum
class VMFunction : public DObject
{
DECLARE_ABSTRACT_CLASS(VMFunction, DObject);
HAS_OBJECT_POINTERS;
public:
bool Native;
FName Name;

View file

@ -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)