(svn r23370) -Add: support @api tag in API header files, to select which API should receive the defined classes and functions

This commit is contained in:
truebrain
2011-11-29 23:27:26 +00:00
parent 2c877b074e
commit 4d91f645c1
52 changed files with 240 additions and 57 deletions

View File

@@ -16,6 +16,7 @@
/**
* Class that handles all log related functions.
* @api ai
*/
class ScriptLog : public ScriptObject {
/* ScriptController needs access to Enum and Log, in order to keep the flow from
@@ -23,10 +24,10 @@ class ScriptLog : public ScriptObject {
friend class ScriptController;
public:
#ifndef EXPORT_SKIP
/**
* Log levels; The value is also feed to DEBUG() lvl.
* This has no use for you, as AI writer.
* @api -all
*/
enum ScriptLogType {
LOG_SQ_ERROR = 0, ///< Squirrel printed an error.
@@ -39,6 +40,7 @@ public:
/**
* Internal representation of the log-data inside the AI.
* This has no use for you, as AI writer.
* @api -all
*/
struct LogData {
char **lines; ///< The log-lines.
@@ -47,7 +49,6 @@ public:
int pos; ///< Current position in lines.
int used; ///< Total amount of used log-lines.
};
#endif /* EXPORT_SKIP */
/**
* Print an Info message to the logs.
@@ -67,13 +68,11 @@ public:
*/
static void Error(const char *message);
#ifndef EXPORT_SKIP
/**
* Free the log pointer.
* @note DO NOT CALL YOURSELF; leave it to the internal AI programming.
* @api -all
*/
static void FreeLogPointer();
#endif /* EXPORT_SKIP */
private:
/**