return pointer from JavaScript to C++

2015-12-09 Thread Josh A
Hi all, This seems like it should be really straight forward, but I can't find an example of this. I am trying to expose some scripting on my software: With embind I expose an Interface that should be implemented by javascript. This works fine. Now I want to call some code that takes a provi

emscripten_run_script error handling

2016-04-29 Thread Josh A
Hi, I've tried looking for this, but cannot find it. Is there any way to detect an error in calls to emscripten_run_script? Say for example there is a syntax error in the code I provide to that function, how can I capture that? It seems that if I wrap whatever call from js makes this happe

Re: emscripten_run_script error handling

2016-04-29 Thread Josh A
cript/Interacting-with-code.html#implement-c-in-javascript -- brion On Fri, Apr 29, 2016 at 5:08 AM, Josh A <mailto:jau...@gmail.com>> wrote: Hi, I've tried looking for this, but cannot find it. Is there any way to detect an error in calls to emscripten_run_script? Say for

Re: Protobufs + Emscripten

2016-09-16 Thread Josh A
Hi, We had success using this https://github.com/invokr/protobuf-emscripten If I remember correctly that basically worked out of the box. Hope this is helps. -Josh On 09/16/2016 11:46 AM, Tomas Reimers wrote: Interesting, so what I'm trying to do is compile a C++ project that already heavily

Re: Protobufs + Emscripten

2016-09-21 Thread Josh A
t;mailto:tomasreim...@gmail.com>> wrote: Hey Josh, Sorry to keep asking, but how did you link it in? For example if a project links against protobufs (-lprotobuf), what did you to get it to compile into the larger project? Thanks so much, Tomas On Fri, Sep 16,