| 57 | */ |
| 58 | template <typename Func> |
| 59 | void DefSQStaticMethod(Squirrel &engine, Func function_proc, std::string_view function_name, std::string_view params = {}) |
| 60 | { |
| 61 | using namespace SQConvert; |
| 62 | engine.AddMethod(function_name, DefSQStaticCallback<CL, Func>, params, &function_proc, sizeof(function_proc)); |
| 63 | } |
| 64 | |
| 65 | /** |
| 66 | * This defines a static method inside a class for Squirrel, which has access to the 'engine' (experts only!). |
no test coverage detected