summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2011-11-29 23:27:34 +0000
committertruebrain <truebrain@openttd.org>2011-11-29 23:27:34 +0000
commit549e072041b06d72f7c832f94e609222045ccd13 (patch)
treede1d37df2f321be2d3612242f8648209f904c82e /src/ai
parent4d91f645c15bb3128adf969afcf7f15bd0f14fa0 (diff)
downloadopenttd-549e072041b06d72f7c832f94e609222045ccd13.tar.xz
(svn r23371) -Change: rename the DOXYGEN_AI_DOCS tag to DOXYGEN_API
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/api/Doxyfile2
-rw-r--r--src/ai/api/ai_info_docs.hpp3
-rw-r--r--src/ai/api/squirrel_export.awk6
3 files changed, 5 insertions, 6 deletions
diff --git a/src/ai/api/Doxyfile b/src/ai/api/Doxyfile
index f830dbd18..9ce9684a3 100644
--- a/src/ai/api/Doxyfile
+++ b/src/ai/api/Doxyfile
@@ -206,7 +206,7 @@ EXPAND_ONLY_PREDEF = YES
SEARCH_INCLUDES = YES
INCLUDE_PATH =
INCLUDE_FILE_PATTERNS =
-PREDEFINED = DOXYGEN_AI_DOCS
+PREDEFINED = DOXYGEN_API
EXPAND_AS_DEFINED = DEF_COMMAND
SKIP_FUNCTION_MACROS = YES
#---------------------------------------------------------------------------
diff --git a/src/ai/api/ai_info_docs.hpp b/src/ai/api/ai_info_docs.hpp
index 74edcfbb4..1f8f8b1fb 100644
--- a/src/ai/api/ai_info_docs.hpp
+++ b/src/ai/api/ai_info_docs.hpp
@@ -10,7 +10,7 @@
/** @file ai_info_docs.hpp Description of the functions an AI can/must provide in AIInfo. */
/* This file exists purely for doxygen purposes. */
-#ifdef DOXYGEN_AI_DOCS
+
/**
* 'Abstract' class of the class AIs/AI libraries use to register themselves.
*
@@ -241,4 +241,3 @@ public:
*/
void AddLabels(const char *setting_name, table value_names);
};
-#endif
diff --git a/src/ai/api/squirrel_export.awk b/src/ai/api/squirrel_export.awk
index dcfd4f893..56d5ee1b3 100644
--- a/src/ai/api/squirrel_export.awk
+++ b/src/ai/api/squirrel_export.awk
@@ -159,9 +159,9 @@ BEGIN {
/^( *)private/ { if (cls_level == 1) public = "false"; next; }
# Ignore special doxygen blocks
-/^#ifndef DOXYGEN_AI_DOCS/ { doxygen_skip = "next"; next; }
-/^#ifdef DOXYGEN_AI_DOCS/ { doxygen_skip = "true"; next; }
-/^#endif \/\* DOXYGEN_AI_DOCS \*\// { doxygen_skip = "false"; next; }
+/^#ifndef DOXYGEN_API/ { doxygen_skip = "next"; next; }
+/^#ifdef DOXYGEN_API/ { doxygen_skip = "true"; next; }
+/^#endif \/\* DOXYGEN_API \*\// { doxygen_skip = "false"; next; }
/^#else/ {
if (doxygen_skip == "next") {
doxygen_skip = "true";