You should be able to write:

constant("ZZZZZ", ZZZZZ);

Then in JavaScript you can refer to:

Module.ZZZZZ

Let me know if that doesn't work.



On Tue, Apr 29, 2014 at 6:40 PM, Eric.Yang <[email protected]> wrote:

> Hi ALL,
>
> I have a lot of defines in C++ header
> ---------------------------------------
> #define AAAA 0x01
> #define BBBB 0x02
>         ..........
>         ..........
> #define ZZZZZ 0x1A
> ---------------------------------------
> Does any way to embine #define?
>
> EMSCRIPTEN_EMBINDINGS (test) {
>
>            ???
> }
>
>
> Or use constant in javascript?
>
> Thanks a lot.
>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Chad Austin
Technical Director, IMVU
http://engineering.imvu.com <http://www.imvu.com/members/Chad/>
http://chadaustin.me

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to