mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 00:37:15 +01:00
JSMN approach.
This commit is contained in:
parent
6cd9c37b86
commit
ce6050cc08
22
module/Library/JSON.cpp
Normal file
22
module/Library/JSON.cpp
Normal file
@ -0,0 +1,22 @@
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
#include "Library/JSON.hpp"
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
#include <sqratConst.h>
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
#include <cstdio>
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
namespace SqMod {
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
// ================================================================================================
|
||||
void Register_JSON(HSQUIRRELVM vm)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
} // Namespace:: SqMod
|
17
module/Library/JSON.hpp
Normal file
17
module/Library/JSON.hpp
Normal file
@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
#include "Core/Utility.hpp"
|
||||
#include "Library/IO/Buffer.hpp"
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
#define JSMN_HEADER
|
||||
#include <jsmn.h>
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
namespace SqMod {
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
} // Namespace:: SqMod
|
@ -35,6 +35,7 @@ extern void Register_Chrono(HSQUIRRELVM vm);
|
||||
extern void Register_CURL(HSQUIRRELVM vm);
|
||||
extern void Register_Format(HSQUIRRELVM vm);
|
||||
extern void Register_IO(HSQUIRRELVM vm);
|
||||
extern void Register_JSON(HSQUIRRELVM vm);
|
||||
extern void Register_MMDB(HSQUIRRELVM vm);
|
||||
extern void Register_Numeric(HSQUIRRELVM vm);
|
||||
extern void Register_String(HSQUIRRELVM vm);
|
||||
@ -99,6 +100,7 @@ bool RegisterAPI(HSQUIRRELVM vm)
|
||||
Register_CURL(vm);
|
||||
Register_Format(vm);
|
||||
Register_IO(vm);
|
||||
Register_JSON(vm);
|
||||
Register_MMDB(vm);
|
||||
Register_Numeric(vm);
|
||||
Register_String(vm);
|
||||
|
Loading…
Reference in New Issue
Block a user