Skip to content

Commit

Permalink
[unity]中文注释可能会导致window下cmake编译失败,先去掉
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Jul 28, 2021
1 parent 804d478 commit ee6a01f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions unity/native_src/Inc/JSEngine.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,12 @@ class JSEngine

std::map<void*, v8::UniquePersistent<v8::Value>> ObjectMap;

// 把已生成的JSFunction存起来,让重复的JSFunction传进来的时候可以复用
std::vector<JSFunction*> JSFunctions;

// 记录js对象到id的映射
v8::UniquePersistent<v8::Map> JSObjectIdMap;
// id到c++ jsobject对象的映射

std::map<int32_t, JSObject*> JSObjectMap;
// 从map里删除元素后,会产生一些空余的id,下次创建时从此处取出使用

std::vector<int32_t> ObjectMapFreeIndex;

std::mutex JSFunctionsMutex;
Expand Down

0 comments on commit ee6a01f

Please sign in to comment.