| 271 | } |
| 272 | |
| 273 | void Squirrel::AddConst(std::string_view var_name, SQInteger value) |
| 274 | { |
| 275 | ScriptAllocatorScope alloc_scope(this); |
| 276 | |
| 277 | sq_pushstring(this->vm, var_name); |
| 278 | sq_pushinteger(this->vm, value); |
| 279 | sq_newslot(this->vm, -3, SQTrue); |
| 280 | } |
| 281 | |
| 282 | void Squirrel::AddConst(std::string_view var_name, bool value) |
| 283 | { |
no test coverage detected