(svn r23210) -Codechange: generate the GetClassName function for the AI classes programmatically

This commit is contained in:
rubidium
2011-11-13 20:52:39 +00:00
parent b7a655bf4c
commit 3f7eb71b17
101 changed files with 183 additions and 256 deletions

View File

@@ -209,6 +209,9 @@ BEGIN {
print "} // namespace SQConvert"
print "";
print "template <> const char *GetClassName<" cls ">() { return \"" cls "\"; }"
print "";
# Then do the registration functions of the class. */
print "void SQ" cls "_Register(Squirrel *engine)"
print "{"
@@ -414,7 +417,6 @@ BEGIN {
cls_param[1] = len;
cls_param[2] = types;
} else if (substr(funcname, 0, 1) == "_" && types != "v") {
} else if (funcname == "GetClassName" && types == ".") {
} else if (is_static) {
static_method_size++
static_methods[static_method_size, 0] = funcname