Oh, I understand now. I reread your original email.

This is interesting. It shouldn't be hard to write...I'd like to help,
but there are just too many things to code and not enough time. But I do
have a set of .NET regexes that match function definitions and extract
parameter information if you'd like to use them. The step of adding the
ASSERTs shouldn't be too tough.

Scott

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of David Rorex
Sent: December 9, 2005 1:49 PM
To: Open Source Flash Mailing List
Subject: Re: [osflash] Actionscript Pre-preprocessors

Scott: That is for adding ASSERT support to the compiler, not for
automatically inserting ASSERT statements into your .as source files.

Nathaneal: Templates wouldn't help so much, he (and I, now) wanted this
to be automatic, to run on all your .as files before compiling them.
Templates, if i understand them correctly, are just for inserting a
block of often-used code, when you hit a hotkey or something.

-David R

On 12/9/05, Scott Hyndman <[EMAIL PROTECTED]> wrote:
> http://www.osflash.org/hamtasc#adding_assert
>
>
> -----Original Message-----
> From:   [EMAIL PROTECTED] on behalf of Benjamin Jackson
> Sent:   Thu 12/8/2005 2:27 PM
> To:     Open Source Flash Mailing List
> Cc:
> Subject:        [osflash] Actionscript Pre-preprocessors
>
> Anyone out there who has done this and can point me in the right 
> direction? I'm thinking for example:
>
> public static function myFunction(myParam:String, myParam2:MovieClip) 
> {
>    // some code ...
> }
>
> to
>
> public static function myFunction(myParam:String, myParam2:MovieClip) 
> {
>    ASSERT(null != myParam, "Null pointer reference");
>    ASSERT(typeof(myParam) == "string", "Type of myParam should be of 
> type String");
>    // some code ...
> }
> ___________________
> Ben Jackson
> Diretor de Desenvolvimento
>
> [EMAIL PROTECTED]
> http://www.incomumdesign.com
>
>
> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
>
>
>
> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
>
>

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to