feat: Added NoNut core

This commit is contained in:
AURUMVORXX
2024-11-04 13:50:49 +03:00
parent 5dea12785b
commit 78885ebce6
18 changed files with 1116 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
#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;
}
}