diff options
author | Chad Austin <chad@imvu.com> | 2013-04-09 18:37:29 -0700 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-04-18 20:08:06 +0300 |
commit | bdeab9a67107aaacc97bc043b8a753e0c58d7e7d (patch) | |
tree | 6d04606fbae2ece0745f72ddbade25a8e0dad4a3 /system/include | |
parent | 17639c372a5f41177177c21c56731b103ad738ad (diff) |
fix a bug in optional argument lists
Diffstat (limited to 'system/include')
-rwxr-xr-x | system/include/emscripten/bind.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/include/emscripten/bind.h b/system/include/emscripten/bind.h index 07955d75..73a8d4da 100755 --- a/system/include/emscripten/bind.h +++ b/system/include/emscripten/bind.h @@ -725,7 +725,7 @@ namespace emscripten { template<typename ReturnType, typename... Args, typename Default> ReturnType optional_call(const char* name, Default def, Args... args) const { if (has_function(name)) { - return Caller<ReturnType>::call(wrapped, name); + return Caller<ReturnType, Args...>::call(wrapped, name, args...); } else { return def(); } |