comparison Platforms/Wasm/WasmPlatformApplicationAdapter.cpp @ 466:5055031f4a06 bgo-commands-codegen

- Added browserify to build. This allows using require calls for modules that work with tsc compiler. - removed older stuff related to Protocol Buffers and Flatbuffers - changed triple-slash references to import statements - module prefixes are now added at call sites - added cmake module for filename handling - switched to Ninja for sample build - Added virtual dtor in ICommand
author bgo-osimis
date Mon, 11 Feb 2019 16:00:04 +0100
parents a902a07769d4
children 7105a0bad250
comparison
equal deleted inserted replaced
448:cc47e6eaefb0 466:5055031f4a06
25 std::unique_ptr<ICommand> command(application_.GetCommandBuilder().CreateFromJson(inputJson)); 25 std::unique_ptr<ICommand> command(application_.GetCommandBuilder().CreateFromJson(inputJson));
26 if (command.get() == NULL) 26 if (command.get() == NULL)
27 printf("Could not parse command: '%s'\n", input.c_str()); 27 printf("Could not parse command: '%s'\n", input.c_str());
28 else 28 else
29 application_.ExecuteCommand(*command); 29 application_.ExecuteCommand(*command);
30 } 30 }
31 } 31 }
32 catch (StoneException& exc) 32 catch (StoneException& exc)
33 { 33 {
34 printf("Error while handling message from web (error code = %d):\n", exc.GetErrorCode()); 34 printf("Error while handling message from web (error code = %d):\n", exc.GetErrorCode());
35 printf("While interpreting input: '%s'\n", input.c_str()); 35 printf("While interpreting input: '%s'\n", input.c_str());