1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-06-15 22:57:12 +02:00

Fix issue with modules not registering their API.

This commit is contained in:
Sandu Liviu Catalin
2016-07-17 03:47:38 +03:00
parent 66d1110733
commit 9874bbe1dc
7 changed files with 31 additions and 30 deletions

View File

@ -27,16 +27,16 @@ static bool RegisterAPI()
return false;
}
Table jns;
Table jns(DefaultVM::Get());
Register_Common(jns);
Register_JArray(jns);
Register_JObject(jns);
Register_JValue(jns);
RootTable().Bind(_SC("SqJSON"), jns);
RootTable(DefaultVM::Get()).Bind(_SC("SqJSON"), jns);
Sqrat::ConstTable()
Sqrat::ConstTable(DefaultVM::Get())
.Const(_SC("JSON_OBJECT"), JSON_OBJECT)
.Const(_SC("JSON_ARRAY"), JSON_ARRAY)
.Const(_SC("JSON_STRING"), JSON_STRING)