-
Notifications
You must be signed in to change notification settings - Fork 0
/
Defines.hx
1003 lines (1001 loc) · 26.5 KB
/
Defines.hx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package haxe.macro;
/**
--- DO NOT EDIT ---
This file is auto-generated.
Built from `define.json` found at https://raw.githubusercontent.com/HaxeFoundation/haxe/development/src-json/define.json
**/
@:forward @:forwardStatics enum abstract Defines(String) from String to String {
/**
Usage: `-D absolute-path`
Print absolute file path in trace output.
**/
public var AbsolutePath = "absolute-path";
/**
Usage: `-D advanced-telemetry`
Allow the SWF to be measured with Monocle tool.
Platform: flash
**/
public var AdvancedTelemetry = "advanced-telemetry";
/**
Usage: `-D analyzer-optimize`
Perform advanced optimizations.
**/
public var AnalyzerOptimize = "analyzer-optimize";
/**
Usage: `-D analyzer-times`
Record detailed timers for the analyzer
Accepts parameters: level: 0 | 1 | 2
**/
public var AnalyzerTimes : DefinedValue<AnalyzerTimesValues> = "analyzer-times";
/**
Usage: `-D annotate-source`
Add additional comments to generated source code.
Platform: cpp
**/
public var AnnotateSource = "annotate-source";
/**
Usage: `-D check-xml-proxy`
Check the used fields of the XML proxy.
**/
public var CheckXmlProxy = "check-xml-proxy";
/**
Usage: `-D core-api`
Defined in the core API context.
**/
public var CoreApi = "core-api";
/**
Usage: `-D core-api-serialize`
Mark some generated core API classes with the `Serializable` attribute on C#.
Platform: cs
**/
public var CoreApiSerialize = "core-api-serialize";
/**
Usage: `-D cppia`
Generate cpp instruction assembly.
**/
public var Cppia = "cppia";
/**
Usage: `-D cs-ver`
The C# version to target.
Accepts parameters: version
Platform: cs
**/
public var CsVer = "cs-ver";
/**
Usage: `-D nocppiaast`
Use legacy cppia generation.
**/
public var NoCppiaAst = "nocppiaast";
/**
Usage: `-D dce`
Set the dead code elimination mode. (default: std)
Accepts parameters: mode: std | full | no
@see: https://haxe.org/manual/cr-dce.html
**/
public var Dce : DefinedValue<DceValues> = "dce";
/**
Usage: `-D dce-debug`
Show DCE log.
@see: https://haxe.org/manual/cr-dce.html
**/
public var DceDebug = "dce-debug";
/**
Usage: `-D debug`
Activated when compiling with -debug.
**/
public var Debug = "debug";
/**
Usage: `-D disable-unicode-strings`
Disable Unicode support in `String` type.
Platform: cpp
**/
public var DisableUnicodeStrings = "disable-unicode-strings";
/**
Usage: `-D display`
Activated during completion.
@see: https://haxe.org/manual/cr-completion.html
**/
public var Display = "display";
/**
Usage: `-D display-stdin`
Read the contents of a file specified in `--display` from standard input.
**/
public var DisplayStdin = "display-stdin";
/**
Usage: `-D dll-export`
GenCPP experimental linking.
Platform: cpp
**/
public var DllExport = "dll-export";
/**
Usage: `-D dll-import`
Handle Haxe-generated .NET DLL imports.
Platform: cs
**/
public var DllImport = "dll-import";
/**
Usage: `-D doc-gen`
Do not perform any removal/change in order to correctly generate documentation.
**/
public var DocGen = "doc-gen";
/**
Usage: `-D dump`
Dump typed AST in dump subdirectory using specified mode or non-prettified default.
Accepts parameters: mode: pretty | record | position | legacy
**/
public var Dump : DefinedValue<DumpValues> = "dump";
/**
Usage: `-D dump-path`
Path to generate dumps to (default: "dump").
Accepts parameters: path
**/
public var DumpPath = "dump-path";
/**
Usage: `-D dump-dependencies`
Dump the classes dependencies in a dump subdirectory.
**/
public var DumpDependencies = "dump-dependencies";
/**
Usage: `-D dump-ignore-var-ids`
Remove variable IDs from non-pretty dumps (helps with diff).
**/
public var DumpIgnoreVarIds = "dump-ignore-var-ids";
/**
Usage: `-D dynamic-interface-closures`
Use slow path for interface closures to save space.
Platform: cpp
**/
public var DynamicInterfaceClosures = "dynamic-interface-closures";
/**
Usage: `-D erase-generics`
Erase generic classes on C#.
Platform: cs
**/
public var EraseGenerics = "erase-generics";
/**
Usage: `-D eval-call-stack-depth`
Set maximum call stack depth for eval. (default: 1000)
Accepts parameters: depth
Platform: eval
**/
public var EvalCallStackDepth = "eval-call-stack-depth";
/**
Usage: `-D eval-debugger`
Support debugger in macro/interp mode. Allows `host:port` value to open a socket. Implies eval-stack.
Platform: eval
**/
public var EvalDebugger = "eval-debugger";
/**
Usage: `-D eval-print-depth`
Set maximum print depth (before replacing with '<...>') for eval. (default: 5)
Accepts parameters: depth
Platform: eval
**/
public var EvalPrintDepth = "eval-print-depth";
/**
Usage: `-D eval-pretty-print`
Enable indented output for eval printing.
Platform: eval
**/
public var EvalPrettyPrint = "eval-pretty-print";
/**
Usage: `-D eval-stack`
Record stack information in macro/interp mode.
Platform: eval
**/
public var EvalStack = "eval-stack";
/**
Usage: `-D eval-times`
Record per-method execution times in macro/interp mode. Implies eval-stack.
Platform: eval
**/
public var EvalTimes = "eval-times";
/**
Usage: `-D filter-times`
Record per-filter execution times upon --times.
**/
public var FilterTimes = "filter-times";
/**
Usage: `-D fast-cast`
Enables an experimental casts cleanup on C# and Java.
Platform: cs|java
**/
public var FastCast = "fast-cast";
/**
Usage: `-D fdb`
Enable full flash debug infos for FDB interactive debugging.
Platform: flash
**/
public var Fdb = "fdb";
/**
Usage: `-D file-extension`
Output filename extension for cpp source code.
Platform: cpp
**/
public var FileExtension = "file-extension";
/**
Usage: `-D flash-strict`
More strict typing for flash target.
Platform: flash
**/
public var FlashStrict = "flash-strict";
/**
Usage: `-D flash-use-stage`
Keep the SWF library initial stage.
Platform: flash
**/
public var FlashUseStage = "flash-use-stage";
/**
Usage: `-D force-lib-check`
Force the compiler to check `--net-lib` and `--java-lib` added classes (internal).
force-lib-check is only here as a debug facility - compiler checking allows errors to be found more easily
Platform: cs|java
**/
public var ForceLibCheck = "force-lib-check";
/**
Usage: `-D force-native-property`
Tag all properties with `:nativeProperty` metadata for 3.1 compatibility.
Platform: cpp
**/
public var ForceNativeProperty = "force-native-property";
/**
Usage: `-D gencommon-debug`
GenCommon internal.
Platform: cs|java
**/
public var GencommonDebug = "gencommon-debug";
/**
Usage: `-D haxe3compat`
Gives warnings about transition from Haxe 3.x to Haxe 4.0.
**/
public var Haxe3Compat = "haxe3compat";
/**
Usage: `-D haxe-boot`
Give the name 'haxe' to the flash boot class instead of a generated name.
Platform: flash
**/
public var HaxeBoot = "haxe-boot";
/**
Usage: `-D haxe-ver`
The current Haxe version value as decimal number. E.g. 3.407 for 3.4.7.
**/
public var HaxeVer = "haxe-ver";
/**
Usage: `-D haxe`
The current Haxe version value in SemVer format.
**/
public var Haxe = "haxe";
/**
Usage: `-D haxe-next`
Enable experimental features that are meant to be released on next Haxe version.
**/
public var HaxeNext = "haxe-next";
/**
Usage: `-D hl-ver`
The HashLink version to target. (default: 1.10.0)
Accepts parameters: version
Platform: hl
**/
public var HlVer = "hl-ver";
/**
Usage: `-D hxcpp-api-level`
Provided to allow compatibility between hxcpp versions.
Platform: cpp
**/
public var HxcppApiLevel = "hxcpp-api-level";
/**
Usage: `-D HXCPP-GC-GENERATIONAL`
Experimental Garbage Collector.
Platform: cpp
**/
public var HxcppGcGenerational = "HXCPP-GC-GENERATIONAL";
/**
Usage: `-D HXCPP-DEBUGGER`
Include additional information for hxcpp-debugger.
Platform: cpp
**/
public var HxcppDebugger = "HXCPP-DEBUGGER";
/**
Usage: `-D hxcpp-smart-strings`
Use wide strings in hxcpp. (Turned on by default unless `-D disable-unicode-strings` is specified.)
Platform: cpp
**/
public var HxcppSmartStings = "hxcpp-smart-strings";
/**
Usage: `-D include-prefix`
Prepend path to generated include files.
Platform: cpp
**/
public var IncludePrefix = "include-prefix";
/**
Usage: `-D interp`
The code is compiled to be run with `--interp`.
**/
public var Interp = "interp";
/**
Usage: `-D jar-legacy-loader`
Use the legacy loader to load .jar files on the JVM target.
Platform: java
**/
public var JarLegacyLoader = "jar-legacy-loader";
/**
Usage: `-D java-ver`
Sets the Java version to be targeted.
Accepts parameters: version: 5-7
Platform: java
**/
public var JavaVer : DefinedValue<JavaVerRange> = "java-ver";
/**
Usage: `-D js-classic`
Don't use a function wrapper and strict mode in JS output.
Platform: js
**/
public var JsClassic = "js-classic";
/**
Usage: `-D js-es`
Generate JS compliant with given ES standard version. (default: 5)
Accepts parameters: version: 3 | 5 | 6
Platform: js
@see: https://haxe.org/manual/target-javascript-es6.html
**/
public var JsEs : DefinedValue<JsEsValues> = "js-es";
/**
Usage: `-D js-enums-as-arrays`
Generate enum representation as array instead of as object.
Platform: js
**/
public var JsEnumsAsArrays = "js-enums-as-arrays";
/**
Usage: `-D js_global`
Customizes the global object name.
Platform: js
**/
public var JsGlobal = "js_global";
/**
Usage: `-D js-unflatten`
Generate nested objects for packages and types.
Platform: js
**/
public var JsUnflatten = "js-unflatten";
/**
Usage: `-D js-source-map`
Generate JavaScript source map even in non-debug mode. Deprecated in favor of `-D source-map`.
Platform: js
**/
public var JsSourceMap = "js-source-map";
/**
Usage: `-D source-map`
Generate source map for compiled files.
Platform: php|js
**/
public var SourceMap = "source-map";
/**
Usage: `-D jvm`
Generate jvm directly.
Platform: java
**/
public var Jvm = "jvm";
/**
Usage: `-D jvm.compression-level`
Set the compression level of the generated file between 0 (no compression) and 9 (highest compression). Default: 6
Platform: java
**/
public var JvmCompressionLevel = "jvm.compression-level";
/**
Usage: `-D jvm.dynamic-level`
Controls the amount of dynamic support code being generated. 0 = none, 1 = field read/write optimization (default), 2 = compile-time method closures
Platform: java
**/
public var JvmDynamicLevel = "jvm.dynamic-level";
/**
Usage: `-D keep-old-output`
Keep old source files in the output directory.
Platform: cs|java
**/
public var KeepOldOutput = "keep-old-output";
/**
Usage: `-D loop-unroll-max-cost`
Maximum cost (number of expressions * iterations) before loop unrolling is canceled. (default: 250)
Accepts parameters: cost
**/
public var LoopUnrollMaxCost = "loop-unroll-max-cost";
/**
Usage: `-D lua-jit`
Enable the jit compiler for lua (version 5.2 only).
Platform: lua
**/
public var LuaJit = "lua-jit";
/**
Usage: `-D lua-vanilla`
Generate code lacking compiled extern lib support (e.g. utf8).
Platform: lua
**/
public var LuaVanilla = "lua-vanilla";
/**
Usage: `-D lua-ver`
The lua version to target.
Accepts parameters: version
Platform: lua
**/
public var LuaVer = "lua-ver";
/**
Usage: `-D macro`
Defined when code is compiled in the macro context.
@see: https://haxe.org/manual/macro.html
**/
public var Macro = "macro";
/**
Usage: `-D macro-times`
Display per-macro timing when used with `--times`.
**/
public var MacroTimes = "macro-times";
/**
Usage: `-D net-ver`
Sets the .NET version to be targeted.
Accepts parameters: version: 20-50
Platform: cs
**/
public var NetVer : DefinedValue<NetVerRange> = "net-ver";
/**
Usage: `-D netcore-ver`
Sets the .NET core version to be targeted
Accepts parameters: version: x.x.x
Platform: cs
**/
public var NetcoreVer = "netcore-ver";
/**
Usage: `-D net-target`
Sets the .NET target. `netcore` (.NET core), `xbox`, `micro` (Micro Framework), `compact` (Compact Framework) are some valid values. (default: `net`)
Accepts parameters: name
Platform: cs
**/
public var NetTarget = "net-target";
/**
Usage: `-D neko-source`
Output neko source instead of bytecode.
Platform: neko
**/
public var NekoSource = "neko-source";
/**
Usage: `-D neko-no-haxelib-paths`
Disable hard-coded Haxelib ndll paths.
Platform: neko
**/
public var NekoNoHaxelibPaths = "neko-no-haxelib-paths";
/**
Usage: `-D neko-v1`
Keep Neko 1.x compatibility.
Platform: neko
**/
public var NekoV1 = "neko-v1";
/**
Usage: `-D network-sandbox`
Use local network sandbox instead of local file access one.
Platform: flash
**/
public var NetworkSandbox = "network-sandbox";
/**
Usage: `-D no-compilation`
Disable final compilation.
Platform: cs|java|cpp|hl
**/
public var NoCompilation = "no-compilation";
/**
Usage: `-D no-debug`
Remove all debug macros from cpp output.
**/
public var NoDebug = "no-debug";
/**
Usage: `-D no-deprecation-warnings`
Do not warn if fields annotated with `@:deprecated` are used.
**/
public var NoDeprecationWarnings = "no-deprecation-warnings";
/**
Usage: `-D no-flash-override`
Change overrides on some basic classes into HX suffixed methods
Platform: flash
**/
public var NoFlashOverride = "no-flash-override";
/**
Usage: `-D no-opt`
Disable optimizations.
**/
public var NoOpt = "no-opt";
/**
Usage: `-D no-inline`
Disable inlining.
@see: https://haxe.org/manual/class-field-inline.html
**/
public var NoInline = "no-inline";
/**
Usage: `-D keep-inline-positions`
Don't substitute positions of inlined expressions with the position of the place of inlining.
@see: https://haxe.org/manual/class-field-inline.html
**/
public var KeepInlinePositions = "keep-inline-positions";
/**
Usage: `-D no-root`
Generate top-level types into the `haxe.root` namespace.
Platform: cs
**/
public var NoRoot = "no-root";
/**
Usage: `-D no-macro-cache`
Disable macro context caching.
**/
public var NoMacroCache = "no-macro-cache";
/**
Usage: `-D no-swf-compress`
Disable SWF output compression.
Platform: flash
**/
public var NoSwfCompress = "no-swf-compress";
/**
Usage: `-D no-traces`
Disable all trace calls.
**/
public var NoTraces = "no-traces";
/**
Usage: `-D objc`
Sets the hxcpp output to Objective-C++ classes. Must be defined for interop.
Platform: cpp
**/
public var Objc = "objc";
/**
Usage: `-D old-error-format`
Use Haxe 3.x zero-based column error messages instead of new one-based format.
**/
public var OldErrorFormat = "old-error-format";
/**
Usage: `-D php-prefix`
Root namespace for generated php classes. E.g. if compiled with`-D php-prefix=some.sub`, then all classes will be generated in `\some\sub` namespace.
Accepts parameters: dot-separated namespace
Platform: php
**/
public var PhpPrefix = "php-prefix";
/**
Usage: `-D php-lib`
Select the name for the php lib folder.
Accepts parameters: folder name
Platform: php
**/
public var PhpLib = "php-lib";
/**
Usage: `-D php-front`
Select the name for the php front file. (default: `index.php`)
Accepts parameters: filename
Platform: php
**/
public var PhpFront = "php-front";
/**
Usage: `-D python-version`
The python version to target. (default: 3.3)
Accepts parameters: version
Platform: python
**/
public var PythonVersion = "python-version";
/**
Usage: `-D real-position`
Disables Haxe source mapping when targetting C#, removes position comments in Java and Php output.
Platform: cs|java|php
**/
public var RealPosition = "real-position";
/**
Usage: `-D replace-files`
GenCommon internal.
Platform: cs|java
**/
public var ReplaceFiles = "replace-files";
/**
Usage: `-D retain-untyped-meta`
Prevents arbitrary expression metadata from being discarded upon typing.
**/
public var RetainUntypedMeta = "retain-untyped-meta";
/**
Usage: `-D scriptable`
GenCPP internal.
Platform: cpp
**/
public var Scriptable = "scriptable";
/**
Usage: `-D shallow-expose`
Expose types to surrounding scope of Haxe generated closure without writing to window object.
Platform: js
**/
public var ShallowExpose = "shallow-expose";
/**
Usage: `-D source-header`
Print value as comment on top of generated files, use '' value to disable.
**/
public var SourceHeader = "source-header";
/**
Usage: `-D source-map-content`
Include the Haxe sources as part of the JS source map.
Platform: js
**/
public var SourceMapContent = "source-map-content";
/**
Usage: `-D static`
Defined if the current target is static.
**/
public var Static = "static";
/**
Usage: `-D std-encoding-utf8`
Force utf8 encoding for stdin, stdout and stderr
Platform: java|cs|python
**/
public var StdEncodingUtf8 = "std-encoding-utf8";
/**
Usage: `-D swc`
Output a SWC instead of a SWF.
Platform: flash
**/
public var Swc = "swc";
/**
Usage: `-D swf-compress-level`
Set the amount of compression for the SWF output.
Accepts parameters: level: 1-9
Platform: flash
**/
public var SwfCompressLevel : DefinedValue<SwfCompressLevelRange> = "swf-compress-level";
/**
Usage: `-D swf-debug-password`
Set a password for debugging.
Accepts parameters: password
Platform: flash
**/
public var SwfDebugPassword = "swf-debug-password";
/**
Usage: `-D swf-direct-blit`
Use hardware acceleration to blit graphics.
Platform: flash
**/
public var SwfDirectBlit = "swf-direct-blit";
/**
Usage: `-D swf-gpu`
Use GPU compositing features when drawing graphics.
Platform: flash
**/
public var SwfGpu = "swf-gpu";
/**
Usage: `-D swf-header`
define SWF header (width:height:fps:color)
Platform: flash
**/
public var SwfHeader = "swf-header";
/**
Usage: `-D swf-metadata`
Include contents of the given file as metadata in the SWF.
Accepts parameters: file
Platform: flash
**/
public var SwfMetadata = "swf-metadata";
/**
Usage: `-D swf-preloader-frame`
Insert empty first frame in SWF.
Platform: flash
**/
public var SwfPreloaderFrame = "swf-preloader-frame";
/**
Usage: `-D swf-protected`
Compile Haxe `private` as `protected` in the SWF instead of `public`.
Platform: flash
**/
public var SwfProtected = "swf-protected";
/**
Usage: `-D swf-script-timeout`
Maximum ActionScript processing time before script stuck dialog box displays.
Accepts parameters: time in seconds
Platform: flash
**/
public var SwfScriptTimeout = "swf-script-timeout";
/**
Usage: `-D swf-use-doabc`
Use `DoAbc` SWF-tag instead of `DoAbcDefine`.
Platform: flash
**/
public var SwfUseDoAbc = "swf-use-doabc";
/**
Usage: `-D sys`
Defined for all system platforms.
**/
public var Sys = "sys";
/**
Usage: `-D unsafe`
Allow unsafe code when targeting C#.
Platform: cs
**/
public var Unsafe = "unsafe";
/**
Usage: `-D use-nekoc`
Use `nekoc` compiler instead of the internal one.
Platform: neko
**/
public var UseNekoc = "use-nekoc";
/**
Usage: `-D utf16`
Defined for all platforms that use UTF-16 string encoding with UCS-2 API.
**/
public var Utf16 = "utf16";
/**
Usage: `-D vcproj`
GenCPP internal.
Platform: cpp
**/
public var Vcproj = "vcproj";
/**
Usage: `-D warn-var-shadowing`
Warn about shadowing variable declarations.
**/
public var WarnVarShadowing = "warn-var-shadowing";
/**
Usage: `-D no-tre`
Disable tail recursion elimination.
**/
public var NoTre = "no-tre";
/**
Usage: `-D message.reporting`
Select message reporting mode for compiler output. (default: classic)
Accepts parameters: mode: classic | pretty | indent
**/
public var MessageReporting : DefinedValue<MessageReportingValues> = "message.reporting";
/**
Usage: `-D message.no-color`
Disable ANSI color codes in message reporting.
**/
public var MessageNoColor = "message.no-color";
/**
Usage: `-D message.log-file`
Path to a text file to write message reporting to, in addition to regular output.
**/
public var MessageLogFile = "message.log-file";
/**
Usage: `-D message.log-format`
Select message reporting mode for message log file. (default: indent)
Accepts parameters: format: classic | pretty | indent
**/
public var MessageLogFormat : DefinedValue<MessageLogFormatValues> = "message.log-format";
/**
Usage: `-D target.static`
**/
public var TargetStatic = "target.static";
/**
Usage: `-D target.sys`
**/
public var TargetSys = "target.sys";
/**
Usage: `-D target.utf16`
**/
public var TargetUTF16 = "target.utf16";
/**
Usage: `-D target.threaded`
**/
public var TargetThreaded = "target.threaded";
/**
Usage: `-D target.unicode`
**/
public var TargetUnicode = "target.unicode";
/**
Usage: `-D use_rtti_doc`
**/
public var UseRttiDoc = "use_rtti_doc";
/**
Usage: `-D display-details`
@see: https://haxe.org/manual/cr-completion-field-access.html#since-haxe-3.2.0
**/
public var DisplayDetails = "display-details";
/**
Usage: `-D no_copt`
**/
public var NoCOpt = "no_copt";
/**
Usage: `-D target.atomics`
**/
public var TargetAtomics = "target.atomics";
/**
Usage: `-D flash`
Targeting the Flash platform.
Platform: flash
**/
public var Flash = "flash";
/**
Usage: `-D neko`
Targeting the Neko platform.
Platform: neko
**/
public var Neko = "neko";
/**
Usage: `-D js`
Targeting the JavaScript platform.
Platform: js
**/
public var JavaScript = "js";
/**
Usage: `-D lua`
Targeting the Lua platform.
Platform: lua
**/
public var Lua = "lua";
/**
Usage: `-D php`
Targeting the Php platform.
Platform: php
**/
public var Php = "php";
/**
Usage: `-D cpp`
Targeting the C++ platform.
Platform: cpp
**/
public var Cpp = "cpp";
/**
Usage: `-D cs`
Targeting the CSharp platform.
Platform: cs
**/
public var CSharp = "cs";
/**
Usage: `-D java`
Targeting the Java platform.
Platform: java
**/
public var Java = "java";
/**
Usage: `-D python`
Targeting the Python platform.
Platform: python
**/
public var Python = "python";
/**
Usage: `-D hl`
Targeting the Hashlink platform.
Platform: hl
**/
public var Hashlink = "hl";
/**
Usage: `-D eval`
Currently running in the internal macro system.
Platform: eval
**/
public var Eval = "eval";
public inline function get():Null<String> {
return haxe.macro.Context.definedValue(this);
}
@:to
public inline function asBool():Bool {
return haxe.macro.Context.defined(this);
}
@:op(A == B)
@:commutative
private static inline function equals(a:Defines, b:Bool) {
return a.asBool() == b;
}
@:op(!A)
private static inline function negate(a:Defines) {
return !a.asBool();
}
@:op(A != B)
@:commutative
private static inline function not(a:Defines, b:Bool) {
return a.asBool() != b;
}
@:op(A && B)
@:commutative
private static inline function and(a:Defines, b:Bool) {
return a.asBool() && b;
}
@:op(A || B)
@:commutative
private static inline function or(a:Defines, b:Bool) {
return a.asBool() || b;
}
}
enum abstract AnalyzerTimesValues(String) from String to String to Defines {
public static inline function get(self:DefinedValue<AnalyzerTimesValues>):Null<AnalyzerTimesValues> {
return haxe.macro.Context.definedValue(self);
}
public var Level0 = "0";
public var Level1 = "1";
public var Level2 = "2";
}
enum abstract DceValues(String) from String to String to Defines {
public static inline function get(self:DefinedValue<DceValues>):Null<DceValues> {
return haxe.macro.Context.definedValue(self);
}
public var Standard = "std";
public var Full = "full";
public var No = "no";
}
enum abstract DumpValues(String) from String to String to Defines {
public static inline function get(self:DefinedValue<DumpValues>):Null<DumpValues> {
return haxe.macro.Context.definedValue(self);
}
public var Pretty = "pretty";
public var Record = "record";
public var Position = "position";
public var Legacy = "legacy";
}
enum abstract JavaVerRange(String) from String to String to Defines {
public static inline function get(self:DefinedValue<JavaVerRange>):Null<JavaVerRange> {
return haxe.macro.Context.definedValue(self);
}
public var Version5 = "5";
public var Version6 = "6";
public var Version7 = "7";
}
enum abstract JsEsValues(String) from String to String to Defines {
public static inline function get(self:DefinedValue<JsEsValues>):Null<JsEsValues> {
return haxe.macro.Context.definedValue(self);
}
public var Version3 = "3";
public var Version5 = "5";
public var Version6 = "6";
}
enum abstract NetVerRange(String) from String to String to Defines {
public static inline function get(self:DefinedValue<NetVerRange>):Null<NetVerRange> {
return haxe.macro.Context.definedValue(self);
}
public var Version20 = "20";
public var Version21 = "21";
public var Version22 = "22";
public var Version23 = "23";
public var Version24 = "24";
public var Version25 = "25";
public var Version26 = "26";
public var Version27 = "27";
public var Version28 = "28";
public var Version29 = "29";
public var Version30 = "30";
public var Version31 = "31";
public var Version32 = "32";
public var Version33 = "33";
public var Version34 = "34";
public var Version35 = "35";
public var Version36 = "36";
public var Version37 = "37";
public var Version38 = "38";
public var Version39 = "39";
public var Version40 = "40";
public var Version41 = "41";
public var Version42 = "42";
public var Version43 = "43";
public var Version44 = "44";
public var Version45 = "45";
public var Version46 = "46";
public var Version47 = "47";
public var Version48 = "48";
public var Version49 = "49";
public var Version50 = "50";
}
enum abstract SwfCompressLevelRange(String) from String to String to Defines {
public static inline function get(self:DefinedValue<SwfCompressLevelRange>):Null<SwfCompressLevelRange> {
return haxe.macro.Context.definedValue(self);
}
public var Level1 = "1";
public var Level2 = "2";
public var Level3 = "3";
public var Level4 = "4";
public var Level5 = "5";
public var Level6 = "6";
public var Level7 = "7";
public var Level8 = "8";
public var Level9 = "9";
}
enum abstract MessageReportingValues(String) from String to String to Defines {
public static inline function get(self:DefinedValue<MessageReportingValues>):Null<MessageReportingValues> {
return haxe.macro.Context.definedValue(self);
}
public var Classic = "classic";
public var Pretty = "pretty";
public var Indent = "indent";
}
enum abstract MessageLogFormatValues(String) from String to String to Defines {
public static inline function get(self:DefinedValue<MessageLogFormatValues>):Null<MessageLogFormatValues> {
return haxe.macro.Context.definedValue(self);
}
public var Classic = "classic";
public var Pretty = "pretty";
public var Indent = "indent";
}