Skip to content

Commit 1b0a73c

Browse files
committed
fix em_asm blocks
1 parent ce98f48 commit 1b0a73c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cocos2dx/platform/emscripten/CCEGLView.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ void onReleaseKey(unsigned char key, int x, int y) {
112112
EGLView::EGLView()
113113
{
114114
// mouse & touches handler
115-
EM_ASM({
115+
EM_ASM((
116116
var getMousePos = function(event) {
117117
var rect = Module["canvas"].getBoundingClientRect();
118118
var cw = Module["canvas"].width;
@@ -201,7 +201,7 @@ EGLView::EGLView()
201201
window.addEventListener("mousemove", onMouseMove, true);
202202
window.addEventListener("mousedown", onMouseButtonDown, true);
203203
window.addEventListener("mouseup", onMouseButtonUp, true);
204-
});
204+
));
205205

206206
_eglDisplay = EGL_NO_DISPLAY;
207207
_eglContext = EGL_NO_CONTEXT;

cocos2dx/platform/emscripten/CCTextureCacheEmscripten.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void cocos2dx_initAsyncImageLoaderLibrary() {
3939
if (isInited) {
4040
return;
4141
}
42-
EM_ASM({
42+
EM_ASM((
4343
/****************************************************************************
4444
Copyright (c) 2013 Zynga Inc.
4545
@@ -341,7 +341,7 @@ var LibraryCocosHelper = {
341341
window['LibraryCocosHelper'] = LibraryCocosHelper;
342342
window['cocos2dx'] = LibraryCocosHelper.$cocos2dx;
343343

344-
});
344+
));
345345
}
346346

347347
extern "C" {

0 commit comments

Comments
 (0)