From 913361928fe2b917def749af774c94228a840524 Mon Sep 17 00:00:00 2001 From: eska Date: Mon, 11 Apr 2016 23:22:14 +0200 Subject: Add JavaScript eval interface --- platform/javascript/os_javascript.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'platform/javascript/os_javascript.h') diff --git a/platform/javascript/os_javascript.h b/platform/javascript/os_javascript.h index 16e4781d1..5b7904805 100644 --- a/platform/javascript/os_javascript.h +++ b/platform/javascript/os_javascript.h @@ -42,6 +42,7 @@ #include "audio_driver_javascript.h" #include "main/input_default.h" #include "emscripten/html5.h" +#include "javascript_eval.h" typedef void (*GFXInitFunc)(void *ud,bool gl2,int w, int h, bool fs); typedef int (*OpenURIFunc)(const String&); @@ -88,6 +89,10 @@ private: GetDataDirFunc get_data_dir_func; GetLocaleFunc get_locale_func; +#ifdef JAVASCRIPT_EVAL_ENABLED + JavaScript* javascript_eval; +#endif + static void _close_notification_funcs(const String& p_file,int p_flags); void process_joysticks(); -- cgit v1.2.3-70-g09d2