From a01d6734153062bed8603cf260d4034f8899dc59 Mon Sep 17 00:00:00 2001 From: cuz Date: Wed, 16 Jul 2003 05:59:29 +0000 Subject: [PATCH] New option --asm-define git-svn-id: svn://svn.cc65.org/cc65/trunk@2229 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cl65/main.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/cl65/main.c b/src/cl65/main.c index 7983a520f..b79d4833e 100644 --- a/src/cl65/main.c +++ b/src/cl65/main.c @@ -620,6 +620,7 @@ static void Usage (void) "Long options:\n" " --add-source\t\tInclude source as comment\n" " --ansi\t\tStrict ANSI mode\n" + " --asm-define sym[=v]\tDefine an assembler symbol\n" " --asm-include-dir dir\tSet an assembler include directory\n" " --bss-label name\tDefine and export a BSS segment label\n" " --bss-name seg\tSet the name of the BSS segment\n" @@ -680,6 +681,14 @@ static void OptAnsi (const char* Opt attribute ((unused)), +static void OptAsmDefine (const char* Opt attribute ((unused)), const char* Arg) +/* Define an assembler symbol (assembler) */ +{ + CmdAddArg2 (&CA65, "-D", Arg); +} + + + static void OptAsmIncludeDir (const char* Opt attribute ((unused)), const char* Arg) /* Include directory (assembler) */ { @@ -1017,6 +1026,7 @@ int main (int argc, char* argv []) static const LongOpt OptTab[] = { { "--add-source", 0, OptAddSource }, { "--ansi", 0, OptAnsi }, + { "--asm-define", 1, OptAsmDefine }, { "--asm-include-dir", 1, OptAsmIncludeDir }, { "--bss-label", 1, OptBssLabel }, { "--bss-name", 1, OptBssName }, -- 2.39.5