diff options
Diffstat (limited to 'src/modules.js')
| -rw-r--r-- | src/modules.js | 9 | 
1 files changed, 9 insertions, 0 deletions
diff --git a/src/modules.js b/src/modules.js index 53d97817..8cfc38de 100644 --- a/src/modules.js +++ b/src/modules.js @@ -258,6 +258,15 @@ var Functions = {      return sig;    }, +  getSignatureReturnType: function(sig) { +    switch(sig[0]) { +      case 'v': return 'void'; +      case 'i': return 'i32'; +      case 'f': return 'double'; +      default: throw 'what is this sig? ' + sig; +    } +  }, +    // Mark a function as needing indexing. Python will coordinate them all    getIndex: function(ident, doNotCreate, sig) {      if (doNotCreate && !(ident in this.indexedFunctions)) {  | 
