aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/include/emscripten/val.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/system/include/emscripten/val.h b/system/include/emscripten/val.h
index 48f8ef69..91f775a7 100644
--- a/system/include/emscripten/val.h
+++ b/system/include/emscripten/val.h
@@ -27,6 +27,7 @@ namespace emscripten {
/*, ... */);
EM_VAL _emval_get_global(const char* name);
+ EM_VAL _emval_get_module_property(const char* name);
EM_VAL _emval_get_property(EM_VAL object, EM_VAL key);
void _emval_set_property(EM_VAL object, EM_VAL key, EM_VAL value);
void _emval_as(EM_VAL value, TYPEID returnType);
@@ -92,6 +93,10 @@ namespace emscripten {
return val(internal::_emval_get_global(name));
}
+ static val module_property(const char* name) {
+ return val(internal::_emval_get_module_property(name));
+ }
+
template<typename T>
explicit val(const T& value) {
typedef internal::BindingType<T> BT;