OSDN Git Service

debug系関数の引数の一部マクロ化。
[chnosproject/CHNOSProject.git] / CHNOSProject / AI003 / AI003 / main.c
index fd52d91..7401c6c 100755 (executable)
@@ -29,7 +29,7 @@ int main(int argc, const char * argv[])
     \r
     CHNLIB_Environment_SetCurrentWorkingDirectory(argv[0]);\r
     \r
-    CHNLIB_Debug("Hello, World.", __FILE__, __LINE__, __FUNCTION__);\r
+    CHNLIB_Debug("Hello, World.", CHNLIB_DEBUG_ARGUMENTS);\r
     \r
     AI_System_InitializeSystemWorkingSet();\r
     \r
@@ -143,7 +143,7 @@ void AI_Memory_AddRootWordData(CHNLIB_String *tag)
     i_max = CHNLIB_UIPArray_GetNumberOfDatas(WorkingSet.RootWordList);\r
     for(i = 0; i < i_max; i++){\r
         if(CHNLIB_String_CompareString_Strict(CHNLIB_UIPArray_GetPointerByIndex(WorkingSet.RootWordList, i), tag)){\r
-            CHNLIB_ReportError("Word[%s] has already existed.", __FILE__, __LINE__, __FUNCTION__, CHNLIB_String_GetReferencePointerOfCString(tag));\r
+            CHNLIB_ReportError("Word[%s] has already existed.", CHNLIB_DEBUG_ARGUMENTS, CHNLIB_String_GetReferencePointerOfCString(tag));\r
             return;\r
         }\r
     }\r
@@ -162,7 +162,7 @@ int AI_Memory_AddRootWordData_IsDuplicated(const void *listtag, const void *newt
         return False;\r
     }\r
     if(CHNLIB_String_CompareString_Strict(listtag, newtag)){\r
-        CHNLIB_ReportError("Word[%s] has already existed.", __FILE__, __LINE__, __FUNCTION__, CHNLIB_String_GetReferencePointerOfCString(newtag));\r
+        CHNLIB_ReportError("Word[%s] has already existed.", CHNLIB_DEBUG_ARGUMENTS, CHNLIB_String_GetReferencePointerOfCString(newtag));\r
         return True;\r
     }\r
     return False;\r