diff options
author | Alan Kligman <ack@mozilla.com> | 2013-04-16 12:45:03 -0400 |
---|---|---|
committer | Alan Kligman <ack@mozilla.com> | 2013-05-23 15:30:25 -0400 |
commit | 4fb9a415268e59744afa683b84268c56e86cca8b (patch) | |
tree | 47266d0ba2fb0ad537d6d419be813ebd0447cd74 /src/settings.js | |
parent | 780fee9f3e1f3d6e461be33bd452ed8ecb1d497c (diff) |
Add support for webrtc-based sockets. Moved both backends behind a settings flag, SOCKET_WEBRTC.
Diffstat (limited to 'src/settings.js')
-rw-r--r-- | src/settings.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/settings.js b/src/settings.js index d3abb06e..b258ce04 100644 --- a/src/settings.js +++ b/src/settings.js @@ -174,6 +174,7 @@ var LIBRARY_DEBUG = 0; // Print out when we enter a library call (library*.js). // want it back. A simple way to set it in C++ is // emscripten_run_script("Runtime.debug = ...;"); var SOCKET_DEBUG = 0; // Log out socket/network data transfer. +var SOCKET_WEBRTC = 1; // Select socket backend, either webrtc or websockets. var OPENAL_DEBUG = 0; // Print out debugging information from our OpenAL implementation. @@ -193,7 +194,7 @@ var DISABLE_EXCEPTION_CATCHING = 0; // Disables generating code to actually catc // introduce silent failures, which is good). // DISABLE_EXCEPTION_CATCHING = 0 - generate code to actually catch exceptions // DISABLE_EXCEPTION_CATCHING = 1 - disable exception catching at all - // DISABLE_EXCEPTION_CATCHING = 2 - disable exception catching, but enables + // DISABLE_EXCEPTION_CATCHING = 2 - disable exception catching, but enables // catching in whitelist // TODO: Make this also remove cxa_begin_catch etc., optimize relooper // for it, etc. (perhaps do all of this as preprocessing on .ll?) |