浏览代码

Add comment for modify third-party code.

aster2013 11 年之前
父节点
当前提交
5eed296f37
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 1 0
      Source/ThirdParty/toluapp/src/lib/tolua_is.c
  2. 2 1
      Source/ThirdParty/toluapp/src/lib/tolua_map.c

+ 1 - 0
Source/ThirdParty/toluapp/src/lib/tolua_is.c

@@ -116,6 +116,7 @@ TOLUA_API void tolua_error (lua_State* L, const char* msg, tolua_Error* err)
 }
 
 /* the equivalent of lua_is* for usertable */
+// Modified by Aster Jian for Urho3D.
 static  int lua_isusertable (lua_State* L, int lo, const char* type)
 {
 	int r = 0;

+ 2 - 1
Source/ThirdParty/toluapp/src/lib/tolua_map.c

@@ -394,7 +394,8 @@ TOLUA_API void tolua_usertype (lua_State* L, const char* type)
  char ctype[128] = "const ";
  strncat(ctype,type,120);
 
-	/* create both metatables */
+ /* create both metatables */
+ // Modified by Aster Jian for Urho3D.
  if (tolua_newmetatable(L,ctype) && tolua_newmetatable(L,(char*)type))
 	 mapsuper(L,type,ctype);             /* 'type' is also a 'const type' */
 }