OSDN Git Service

Fixed Mac compile error.
authortkawata <takuji.kawata@gmail.com>
Sun, 26 Feb 2012 13:06:08 +0000 (22:06 +0900)
committertkawata <takuji.kawata@gmail.com>
Sun, 26 Feb 2012 13:06:08 +0000 (22:06 +0900)
Source/DNUtils.cpp
Source/TKJSCellCode.cpp

index e90770b..20e33ef 100644 (file)
@@ -18,6 +18,8 @@
 //
 
 #include "DNUtils.h"
+#include "TKLog.h"
+#include "TKDebug.h"
 
 #include <strings.h>
 #include <stdlib.h>
@@ -39,7 +41,7 @@ void trimString(std::string& str)
 std::string parseCellCodeForScriptEngine(std::string jname, std::string cellCode)
 {
 #ifdef DEBUG
-    DEBUG_TRACE("TKJSCellCode::TKJSCellCode() parse for %s\n=== Original code =====\n%s\n", jname.c_str(), code.c_str());
+    DEBUG_TRACE("TKJSCellCode::TKJSCellCode() parse for %s\n=== Original code =====\n%s\n", jname.c_str(), cellCode.c_str());
 #endif
 
     const char *c = cellCode.c_str();
index bc38c98..25451a6 100644 (file)
@@ -62,7 +62,7 @@ TKJSCellCode::TKJSCellCode(std::string name, std::string cellapi, TKJSContainer
    //parse input js string here..
 
     std::string jname = getJSEscapeString(name.c_str());
-    std::string stmt = parseCellCodeforScriptEngine(jname, code);
+    std::string stmt = parseCellCodeForScriptEngine(jname, code);
 
     JSContextRef jsCtx = mJSContainer->getJSContext();
     JSObjectRef  jsGlobalObj = mJSContainer->getJSGlobalObject();