I'm sure you can get this to work.  But will require some craftyness.

But first what version of the tools are you using.

The toolchain I've been using doesn't use '$' anymore but rather "__" so I'm
not at all sure how
old the tools are that you are using.

Eric

On Sat, Oct 23, 2010 at 9:20 AM, Francisco Sant'anna <
[email protected]> wrote:

> Hello,
>
> I have a C project that uses different "backends" than just nesC.
> I'd rather keep a single file and use a mechanism to interface with the
> different backends.
> From inside my code I use a macro named OUTPUT, which is the single point
> that has to be redefined for each "backend".
> For nesC I would like the following to work:
>
> #define OUTPUT(id, size, buf)    signal IO.output(id, size, buf)
>
> This of course does not work, as the right part is nesC specific.
> I examined the generated app.c in the build directory, and came up with
> this:
>
> #define OUTPUT(id, size, buf)    MYPRJC$IO$output(id, size, buf)
>
> Now it complains about the '$' character:
>
> ../myprj.c:156: stray $ in program
>
> Is there a solution for this?
>
> Thanks,
> Francisco
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Eric B. Decker
Senior (over 50 :-) Researcher
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to