Files
PyG2O/src/NoNut/core/Constant.cpp
2024-11-04 13:50:49 +03:00

15 lines
282 B
C++

#include "Constant.h"
namespace nonut
{
SQObject getConstTable()
{
SQObject obj;
HSQUIRRELVM vm = Sqrat::DefaultVM::Get();
sq_pushconsttable(vm);
sq_getstackobj(vm, -1, &obj);
sq_pop(vm, 1); // No addref needed, since the consttable is always around
return obj;
}
}