| 82 | } |
| 83 | |
| 84 | void 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 | |
| 92 | void squirrel_register_std(Squirrel &engine) |
| 93 | { |