File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
src/main/java/com/annimon/ownlang Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 21
21
* @author aNNiMON
22
22
*/
23
23
public final class Main {
24
-
25
- public static final String VERSION = "1.3.1_" + Gen .BUILD_DATE ;
24
+
25
+ public static int VERSION_MAJOR = 1 ;
26
+ public static int VERSION_MINOR = 4 ;
27
+ public static int VERSION_PATCH = 0 ;
28
+ public static final String VERSION = VERSION_MAJOR + "."
29
+ + VERSION_MINOR + "." + VERSION_PATCH
30
+ + "_" + Gen .BUILD_DATE ;
26
31
27
32
private static String [] ownlangArgs = new String [0 ];
28
33
Original file line number Diff line number Diff line change 11
11
public final class std implements Module {
12
12
13
13
public static void initConstants () {
14
+ MapValue ownlang = new MapValue (5 );
15
+ ownlang .set ("PLATFORM" , new StringValue ("desktop" ));
16
+ ownlang .set ("VERSION" , new StringValue (Main .VERSION ));
17
+ ownlang .set ("VERSION_MAJOR" , NumberValue .of (Main .VERSION_MAJOR ));
18
+ ownlang .set ("VERSION_MINOR" , NumberValue .of (Main .VERSION_MINOR ));
19
+ ownlang .set ("VERSION_PATCH" , NumberValue .of (Main .VERSION_PATCH ));
20
+ Variables .define ("OwnLang" , ownlang );
14
21
}
15
22
16
23
@ Override
You can’t perform that action at this time.
0 commit comments