git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
implemented conditional compilation
[swftools.git]
/
src
/
as3compile.c
diff --git
a/src/as3compile.c
b/src/as3compile.c
index
8810cec
..
e59f691
100644
(file)
--- a/
src/as3compile.c
+++ b/
src/as3compile.c
@@
-47,6
+47,7
@@
static struct options_t options[] = {
{"v", "verbose"},
{"q", "quiet"},
{"C", "cgi"},
{"v", "verbose"},
{"q", "quiet"},
{"C", "cgi"},
+{"D", "define"},
{"X", "width"},
{"Y", "height"},
{"r", "rate"},
{"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;
}
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;
else if (!strcmp(name, "N"))
{
local_with_networking = 1;