1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-11-30 13:07:19 +01:00

Minor updates to the JSON module.

This commit is contained in:
Sandu Liviu Catalin
2016-06-20 18:53:09 +03:00
parent 20ae4e602e
commit 22fc6c54c2
5 changed files with 178 additions and 5 deletions

View File

@@ -174,6 +174,16 @@ void RegisterAPI(HSQUIRRELVM vm)
Register_JValue(jns);
RootTable(vm).Bind(_SC("SqJSON"), jns);
Sqrat::ConstTable(vm)
.Const(_SC("JSON_OBJECT"), JSON_OBJECT)
.Const(_SC("JSON_ARRAY"), JSON_ARRAY)
.Const(_SC("JSON_STRING"), JSON_STRING)
.Const(_SC("JSON_INTEGER"), JSON_INTEGER)
.Const(_SC("JSON_REAL"), JSON_REAL)
.Const(_SC("JSON_TRUE"), JSON_TRUE)
.Const(_SC("JSON_FALSE"), JSON_FALSE)
.Const(_SC("JSON_NULL"), JSON_NULL);
}
} // Namespace:: SqMod