diff options
Diffstat (limited to 'system')
-rw-r--r-- | system/include/emscripten/val.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/system/include/emscripten/val.h b/system/include/emscripten/val.h index 8db052e8..e2d35382 100644 --- a/system/include/emscripten/val.h +++ b/system/include/emscripten/val.h @@ -12,6 +12,7 @@ namespace emscripten { void _emval_incref(EM_VAL value); void _emval_decref(EM_VAL value); EM_VAL _emval_new_object(); + EM_VAL _emval_new_null(); EM_VAL _emval_new_long(long value); EM_VAL _emval_new_cstring(const char* str); bool _emval_has_property(EM_VAL object, const char* key); @@ -48,6 +49,10 @@ namespace emscripten { return val(internal::_emval_new_object()); }; + static val null() { + return val(internal::_emval_new_null()); + }; + static val take_ownership(internal::EM_VAL e) { return val(e); } |