Conditional Compilation List

How to display all the Conditional Compilation definition list?Like haxe “haxe --help-defines”.Sorry for bad english.

1 Like

I asked the same question on discord and @maitag has generated a list using those commands:
grep --include=\*.hx -rnw '/usr/lib/haxe/lib/openfl/8,9,7/src/' -e "#if" grep --include=\*.hx -rnw '/usr/lib/haxe/lib/openfl/8,9,7/src/' -e "#if" |grep openfl_ |grep -v openfl_debug

So this the list on Openfl:

openfl_strict
openfl_dynamic
openfl_html5
openfl_big_endian
openfl_power_of_two
openfl_unit_testing
openfl_trace_text_layout_groups
openfl_cairo_show_text
openfl_half_round_font_sizes
openfl_numpad_enter
openfl_dynamic_fields_only
openfl_share_context
openfl_force_sw_graphics 
openfl_force_gl_cacheasbitmap
openfl_pool_events
openfl_disable_event_pooling
openfl_disable_handle_error
openfl_always_dispatch_mouse_events
openfl_disable_display_render
openfl_disable_graphics_upscaling
openfl_disable_cacheasbitmap
openfl_disable_filters
openfl_disable_context_cache 

Using a similar command we could also make a list for Lime.

These defines are not documented. So we will need to work all together to make the list and add to it to a wiki:)

2 Likes

did put raw-search output here (+file and line where define is used in action :wink: ) -> http://maitag.de/semmi/openfl/openfl-linesWith_openfl_Defines.txt

Thank you, I am a beginner. I saw the sample demo of openfl. The “use_tilemap” and “hide_fps” in “BunnyMark” is useful, but I didn’t find it when I searched in openfl. Do you know where it is defined?
image

It is only defined in this sample.