A char[] is just a char pointer, aka a number, so this is expected. You need to look look at http://kripken.github.io/emscripten-site/docs/api_reference/preamble.js.html#Pointer_stringify
On 24 November 2015 at 18:51, Robert Goulet <[email protected]> wrote: > I assumed the following would work, but it didn't : > > char buffer[] = "hello the world"; > EM_ASM_ARGS({ > alert($0); > }, buffer); > > What else am I missing to make this work? Right now it seems its > displaying the address of the variable, since the alert box shows a number > instead of the string. > > Thanks! > > -- > 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. > -- Aidan Currently co-authoring a book on Docker <http://manning.com/miell/?a_aid=aidanhs&a_bid=e0d48f62> - get 39% off with the code 39miell -- 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.
