载入中...
搜索中...
未找到
SquirrelBindContext.h 文件参考

Per-translation-unit VM + diagnostic-source helper for Squirrel bindings. 更多...

#include "common/Export.h"
#include "common/Result.h"
#include "common/SquirrelBinding.h"
#include <simplesquirrel/simplesquirrel.hpp>
#include <string>
#include <type_traits>
#include <utility>

浏览源代码.

类

class  eve::script::BindContext
 Pins the active VM and a stable diagnostic source for one expose() TU. 更多...
 

命名空间

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

函数

template<class F >
void eve::script::bindMethod (ssq::Class &cls, const char *name, F &&fn)
 Register one script method while keeping a literal name for Binding Contracts.
 
template<class ScriptT , class Getter >
void eve::script::bindNullSafe (ssq::Class &cls, const char *name, Getter getter, std::invoke_result_t< Getter, ScriptT & > whenNull)
 Register a null-safe getter that returns whenNull when self is null.
 

详细描述

Per-translation-unit VM + diagnostic-source helper for Squirrel bindings.

Domain and editor facades pin one BindContext (or editor ScriptBind that embeds it) instead of copying bindingFailure / null-self stamps. Result tables always come from projectResult / projectStatusResult.

在文件 SquirrelBindContext.h 中定义.