Skip to content

Commit f8f691d

Browse files
Tóth Bélazherczeg
authored andcommitted
Move version numbers to public headers (#2556)
JERRY_SNAPSHOT_VERSION and JERRY_DEBUGGER_VERSION were moved into public headers, to grant access to them. JerryScript-DCO-1.0-Signed-off-by: Bela Toth [email protected]
1 parent 5060579 commit f8f691d

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

jerry-core/api/jerry-snapshot.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@ typedef struct
3838
*/
3939
#define JERRY_SNAPSHOT_MAGIC (0x5952524Au)
4040

41-
/**
42-
* Jerry snapshot format version.
43-
*/
44-
#define JERRY_SNAPSHOT_VERSION (18u)
45-
4641
/**
4742
* Snapshot configuration flags.
4843
*/

jerry-core/debugger/debugger.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@
2323

2424
/* JerryScript debugger protocol is a simplified version of RFC-6455 (WebSockets). */
2525

26-
/**
27-
* JerryScript debugger protocol version.
28-
*/
29-
#define JERRY_DEBUGGER_VERSION (6)
30-
3126
/**
3227
* Frequency of calling jerry_debugger_receive() by the VM.
3328
*/

jerry-core/include/jerryscript-debugger.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ extern "C"
2828
* @{
2929
*/
3030

31+
/**
32+
* JerryScript debugger protocol version.
33+
*/
34+
#define JERRY_DEBUGGER_VERSION (6)
35+
3136
/**
3237
* Types for the client source wait and run method.
3338
*/

jerry-core/include/jerryscript-snapshot.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ extern "C"
2727
* @{
2828
*/
2929

30+
/**
31+
* Jerry snapshot format version.
32+
*/
33+
#define JERRY_SNAPSHOT_VERSION (18u)
34+
3035
/**
3136
* Flags for jerry_generate_snapshot and jerry_generate_function_snapshot.
3237
*/

0 commit comments

Comments
 (0)