载入中...
搜索中...
未找到
eve::script::ISquirrelRootReleaser类 参考abstract

Releases C++-owned Squirrel roots before Runtime destroys its VM. 更多...

#include <SquirrelOwnership.h>

Public 成员函数

virtual ~ISquirrelRootReleaser ()=default
 I squirrel root releaser.
 
virtual void releaseSquirrelRoots () noexcept=0
 Drops every C++-owned Squirrel root this listener still holds.
 

静态 Public 属性

static constexpr const char * capabilityName = "eve.script.ISquirrelRootReleaser"
 

详细描述

Releases C++-owned Squirrel roots before Runtime destroys its VM.

Providers register with eve::cap::addListener<ISquirrelRootReleaser>(). Runtime::shutdown() notifies every listener while the VM is still alive.

在文件 SquirrelOwnership.h 第 108 行定义.

构造及析构函数说明

◆ ~ISquirrelRootReleaser()

virtual eve::script::ISquirrelRootReleaser::~ISquirrelRootReleaser ( )
virtualdefault

I squirrel root releaser.

成员函数说明

◆ releaseSquirrelRoots()

virtual void eve::script::ISquirrelRootReleaser::releaseSquirrelRoots ( )
pure virtualnoexcept

Drops every C++-owned Squirrel root this listener still holds.

备注
Called from Runtime::shutdown() while the VM is still alive. Implementations must not throw.

被这些函数引用 eve::Runtime::shutdown().

类成员变量说明

◆ capabilityName

constexpr const char* eve::script::ISquirrelRootReleaser::capabilityName = "eve.script.ISquirrelRootReleaser"
staticconstexpr

在文件 SquirrelOwnership.h 第 110 行定义.


该类的文档由以下文件生成: