X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=src%2Fas3compile.c;h=e59f6910b06da0db8fa41fd1a5f2167ebc85f8d4;hb=015233e6dbf54b574dd7f55d11c0d0d614802fde;hp=8810cec27e0213fa9da31e9799fd74f21f721cef;hpb=24187589d18c08df30f53e7b05889056875338fe;p=swftools.git diff --git a/src/as3compile.c b/src/as3compile.c index 8810cec..e59f691 100644 --- a/src/as3compile.c +++ b/src/as3compile.c @@ -47,6 +47,7 @@ static struct options_t options[] = { {"v", "verbose"}, {"q", "quiet"}, {"C", "cgi"}, +{"D", "define"}, {"X", "width"}, {"Y", "height"}, {"r", "rate"}, @@ -109,6 +110,10 @@ int args_callback_option(char*name,char*val) as3_set_option("recurse","1"); return 0; } + else if(!strcmp(name, "D")) { + as3_set_define(val); + return 1; + } else if (!strcmp(name, "N")) { local_with_networking = 1;