From 1b0a73c00b40d867b4d47df6d510b90ec55ee77c Mon Sep 17 00:00:00 2001 From: Aleksander Guryanov Date: Sat, 14 Oct 2017 12:37:19 +0700 Subject: [PATCH] fix em_asm blocks --- cocos2dx/platform/emscripten/CCEGLView.cpp | 4 ++-- cocos2dx/platform/emscripten/CCTextureCacheEmscripten.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cocos2dx/platform/emscripten/CCEGLView.cpp b/cocos2dx/platform/emscripten/CCEGLView.cpp index 2433e0d51..cfaf8c301 100644 --- a/cocos2dx/platform/emscripten/CCEGLView.cpp +++ b/cocos2dx/platform/emscripten/CCEGLView.cpp @@ -112,7 +112,7 @@ void onReleaseKey(unsigned char key, int x, int y) { EGLView::EGLView() { // mouse & touches handler - EM_ASM({ + EM_ASM(( var getMousePos = function(event) { var rect = Module["canvas"].getBoundingClientRect(); var cw = Module["canvas"].width; @@ -201,7 +201,7 @@ EGLView::EGLView() window.addEventListener("mousemove", onMouseMove, true); window.addEventListener("mousedown", onMouseButtonDown, true); window.addEventListener("mouseup", onMouseButtonUp, true); - }); + )); _eglDisplay = EGL_NO_DISPLAY; _eglContext = EGL_NO_CONTEXT; diff --git a/cocos2dx/platform/emscripten/CCTextureCacheEmscripten.cpp b/cocos2dx/platform/emscripten/CCTextureCacheEmscripten.cpp index 327606ebb..0a5a77bc3 100644 --- a/cocos2dx/platform/emscripten/CCTextureCacheEmscripten.cpp +++ b/cocos2dx/platform/emscripten/CCTextureCacheEmscripten.cpp @@ -39,7 +39,7 @@ void cocos2dx_initAsyncImageLoaderLibrary() { if (isInited) { return; } - EM_ASM({ + EM_ASM(( /**************************************************************************** Copyright (c) 2013 Zynga Inc. @@ -341,7 +341,7 @@ var LibraryCocosHelper = { window['LibraryCocosHelper'] = LibraryCocosHelper; window['cocos2dx'] = LibraryCocosHelper.$cocos2dx; -}); +)); } extern "C" {