| 44 | */ |
| 45 | template <typename Func> |
| 46 | void DefSQAdvancedMethod(Squirrel &engine, Func function_proc, std::string_view function_name) |
| 47 | { |
| 48 | using namespace SQConvert; |
| 49 | engine.AddMethod(function_name, DefSQAdvancedNonStaticCallback<CL, Func, ST>, {}, &function_proc, sizeof(function_proc)); |
| 50 | } |
| 51 | |
| 52 | /** |
| 53 | * This defines a static method inside a class for Squirrel with defined params. |
no test coverage detected