Skip to content
Brom Bresenham edited this page Mar 20, 2023 · 4 revisions

Rogue Language

Syntax

$target("Name")

Description

$target(...) is a meta-command that evaluates to true or false at compile time. A true result is returned if the given target was specified using the RogueC compiler's --target option.

RogueC

Syntax

RogueC Option

--target=Target1,"Target2",..., -t Target
--target=macOS

Rogue Code

if ($target("macOS")) ...

Clone this wiki locally