BigEd / atalan

Automatically exported from code.google.com/p/atalan
MIT License
1 stars 0 forks source link

Compile-time options #73

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Options are compile-time constants.
It is possible to specify them from command line or when importing module.
Module declares an option together with it's type and default value.
It can then use the option when compiling.
Options are defined for assebler use too.

option stereo:bool = false

Original issue reported on code.google.com by rudla.ku...@gmail.com on 24 Mar 2011 at 7:14

GoogleCodeExporter commented 9 years ago
Options are specified as strings on command line or when using module.

use m6502 (bcd = false)

Original comment by rudla.ku...@gmail.com on 30 May 2011 at 7:59

GoogleCodeExporter commented 9 years ago
use rmt (stereo = true)

Original comment by rudla.ku...@gmail.com on 30 May 2011 at 7:59

GoogleCodeExporter commented 9 years ago
Parameters are remembered as strings and parsed when the option is defined.
If the option is defined, the text is used instead the default value in 
declaration.

Original comment by rudla.ku...@gmail.com on 30 May 2011 at 8:01

GoogleCodeExporter commented 9 years ago

Original comment by rudla.ku...@gmail.com on 7 Jul 2011 at 7:34