MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / squirrel_register_global_std

Function squirrel_register_global_std

src/script/squirrel_std.cpp:84–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84void squirrel_register_global_std(Squirrel &engine)
85{
86 /* We don't use squirrel_helper here, as we want to register to the global
87 * scope and not to a class. */
88 engine.AddMethod("require", &SquirrelStd::require, ".s");
89 engine.AddMethod("notifyallexceptions", &SquirrelStd::notifyallexceptions, ".b");
90}
91
92void squirrel_register_std(Squirrel &engine)
93{

Callers 1

InitializeMethod · 0.85

Calls 1

AddMethodMethod · 0.80

Tested by

no test coverage detected