| 90 | } |
| 91 | |
| 92 | void squirrel_register_std(Squirrel &engine) |
| 93 | { |
| 94 | /* We don't use squirrel_helper here, as we want to register to the global |
| 95 | * scope and not to a class. */ |
| 96 | engine.AddMethod("min", &SquirrelStd::min, ".ii"); |
| 97 | engine.AddMethod("max", &SquirrelStd::max, ".ii"); |
| 98 | |
| 99 | sqstd_register_mathlib(engine.GetVM()); |
| 100 | } |
no test coverage detected