-
Notifications
You must be signed in to change notification settings - Fork 704
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eca8165
commit a8e5094
Showing
12 changed files
with
120 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* | ||
* Tencent is pleased to support the open source community by making Puerts available. | ||
* Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved. | ||
* Puerts is licensed under the BSD 3-Clause License, except for the third-party components listed in the file 'LICENSE' which may be subject to their corresponding license terms. | ||
* This file is subject to the terms and conditions defined in file 'LICENSE', which is part of this source code package. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#if !defined(PUERTS_NAMESPACE) | ||
#if defined(WITH_QJS_NAMESPACE_SUFFIX) | ||
#define PUERTS_NAMESPACE puerts_qjs | ||
#elif defined(WITH_V8_NAMESPACE_SUFFIX) | ||
#define PUERTS_NAMESPACE puerts_v8 | ||
#else | ||
#define PUERTS_NAMESPACE puerts | ||
#endif | ||
#endif | ||
|
||
namespace puerts | ||
{ | ||
|
||
typedef void (*FuncPtr)(void); | ||
|
||
|
||
enum JsValueType | ||
{ | ||
NullOrUndefined = 1, | ||
BigInt = 2, | ||
Number = 4, | ||
String = 8, | ||
Boolean = 16, | ||
NativeObject = 32, | ||
JsObject = 64, | ||
Array = 128, | ||
Function = 256, | ||
Date = 512, | ||
ArrayBuffer = 1024, | ||
Unknow = 2048, | ||
}; | ||
|
||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.