载入中...
搜索中...
未找到
SquirrelOwnership.cpp 文件参考

Out-of-line core of the owned-Squirrel-instance factory. 更多...

#include "common/SquirrelOwnership.h"
#include <squirrel.h>
#include <simplesquirrel/simplesquirrel.hpp>
#include <exception>
#include <string>

浏览源代码.

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::script
 
namespace  eve::script::detail
 

函数

Diagnostic eve::script::detail::ownedInstanceArgumentDiagnostic ()
 Diagnostic for a null VM or null object, built once instead of per T.
 
Result< ssq::Object > eve::script::detail::makeOwnedSquirrelInstanceRaw (HSQUIRRELVM vm, void *object, SquirrelReleaseHook releaseHook, OwnedInstanceDestroy destroy, std::size_t typeHash)
 Non-template core of makeOwnedSquirrelInstance.
 

详细描述

Out-of-line core of the owned-Squirrel-instance factory.

makeOwnedSquirrelInstance<T> is instantiated once per wrapper type (66 call sites across 28 files), and its body was ~45 lines of stack discipline, instance creation, typing, rooting and exception handling that has nothing to do with T. Emitting it here means one copy instead of one per wrapper.

在文件 SquirrelOwnership.cpp 中定义.