Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenTTD/OpenTTD
/ DefSQConst
Method
DefSQConst
src/script/squirrel_class.hpp:76–79 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
74
75
template <typename Var>
76
void DefSQConst(Squirrel &engine, Var value, std::string_view var_name)
77
{
78
engine.AddConst(var_name, value);
79
}
80
81
void PreRegister(Squirrel &engine)
82
{
Callers
2
RegisterAPI
Method · 0.80
RegisterAPI
Method · 0.80
Calls
1
AddConst
Method · 0.45
Tested by
no test coverage detected