[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnash-commit] /srv/bzr/gnash/avm2 r9579: Add some preprocessor macr
From: |
strk |
Subject: |
Re: [Gnash-commit] /srv/bzr/gnash/avm2 r9579: Add some preprocessor macros to allow String.as to be converted to .hx. |
Date: |
Wed, 1 Oct 2008 18:33:52 +0200 |
On Thu, Oct 02, 2008 at 12:29:30AM +0800, Tom Stellard wrote:
> I think I can improve my script, so that I won't need all of that
> preprocessor stuff. However, I had some trouble when trying to
> include check.as. There is one check.as file in
> testsuite/actionscript.all for the actionscipt files, and a check.as
> file in testsuite/actionscript.all/haxe-swf9 for the haxe files. I
> thought I was setting the correct include directory here in the
> Makefile (located in testsuite/actionscript.all):
>
> HAXE_DIR = $(srcdir)/haxe-swf9
> HAXE_CPP = $(CPP) -DHAXE -DOUTPUT_VERSION=9 -x c -P -I$(HAXE_DIR)
>
> But when I actually run the preprocessor, it always uses the check.as
> file in the testsuite/actionscript.all directory. That is why I added
> the #ifdefs around the #include "check.as" here:
>
> +#ifdef HAXE
> +#include "haxe-swf9/check.as"
> +#else
> #include "check.as"
> +#endif
>
> Can anyone spot what I am doing wrong?
I've no problem with that change in check.as really.
I guess that's required because cpp(1) will still look in CWD
before moving on ?
I'm more concerned with the changes in String.as (the actual
testcases).
--strk;