mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-02 12:57:32 -06:00
20 lines
1.0 KiB
Plaintext
20 lines
1.0 KiB
Plaintext
mixin outputoption(name, longdescription, shortdescription, defaultchecked)
|
|
if noscript
|
|
.button-checkbox
|
|
if defaultchecked
|
|
input(type="checkbox" title=longdescription name=name checked='checked' value='true')
|
|
else
|
|
input(type="checkbox" title=longdescription name=name value='true')
|
|
span=shortdescription
|
|
else
|
|
- var pressed = defaultchecked ? 'true' : 'false'
|
|
.button-checkbox
|
|
button.dropdown-item.btn.btn-sm.btn-light(type='button' title=longdescription data-bind=name aria-pressed=pressed)
|
|
span=shortdescription
|
|
input.d-none(type="checkbox" checked=defaultchecked)
|
|
// If you modify this, update types/features/filters.interfaces.ts
|
|
+outputoption('binary', 'Compile to binary and disassemble the output', 'Compile to binary', false)
|
|
+outputoption('execute', 'Execute code and show its output', 'Execute the code', false)
|
|
+outputoption('intel', 'Output disassembly in Intel syntax', 'Intel asm syntax', true)
|
|
+outputoption('demangle', 'Demangle output', 'Demangle identifiers', true)
|