diff options
author | alon@honor <none@none> | 2010-09-23 20:45:22 -0700 |
---|---|---|
committer | alon@honor <none@none> | 2010-09-23 20:45:22 -0700 |
commit | b170e6ca85023a5d572153b5e151935b6873ff7d (patch) | |
tree | cbdf9f45e0c2cff0eeccb8c3f14e3298814053fa /src/snippets.js | |
parent | de2a556fcd00d772b112b0105eee7e74f4c1d7b7 (diff) |
iostream fixes
Diffstat (limited to 'src/snippets.js')
-rw-r--r-- | src/snippets.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/snippets.js b/src/snippets.js index ec29f371..a30ca7c8 100644 --- a/src/snippets.js +++ b/src/snippets.js @@ -131,6 +131,18 @@ var Snippets = { _ZNSt8ios_base4InitC1Ev: function() { }, _ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_: 0, // endl + _ZNSolsEi: function(stream, data) { + __print__(data); + }, + _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc: function(stream, data) { + __print__(Pointer_stringify(data)); + }, + _ZNSolsEd: function(stream, data) { + __print__('\n'); + }, + _ZNSolsEPFRSoS_E: function(stream, data) { + __print__('\n'); + }, // math.h sqrt: function(x) { return Math.sqrt(x) }, @@ -142,6 +154,5 @@ var Snippets = { Snippets.__cxa_atexit = Snippets.atexit; // iostream -Snippets._ZNSolsEi = Snippets._ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc = Snippets._ZNSolsEd = Snippets._ZNSolsEPFRSoS_E = function(stream, data) { print(data) }; Snippets._ZNSt8ios_base4InitD1Ev = Snippets._ZNSt8ios_base4InitC1Ev; |