[OpenSDK-cvs] openSDK/root/OPEN_R/bin stubgen2,1.17,1.18
Status: Beta
Brought to you by:
nuno-lopes
From: Nuno L. <nun...@us...> - 2007-07-16 13:11:21
|
Update of /cvsroot/opensdk/openSDK/root/OPEN_R/bin In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv23997 Modified Files: stubgen2 Log Message: initialize the object as a global var again, as some robocup team's code rely on it (e.g. CMU) Index: stubgen2 =================================================================== RCS file: /cvsroot/opensdk/openSDK/root/OPEN_R/bin/stubgen2,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- stubgen2 24 Apr 2007 16:38:03 -0000 1.17 +++ stubgen2 16 Jul 2007 13:10:57 -0000 1.18 @@ -426,17 +426,7 @@ print OUT "#include \"$objectName.h\"\n\n"; print OUT <<stub_cc_globals; -//static $objectName Self; - -// hack to get the OObject initialized later in the game. if it was global it was initialized when calling dlopen() -// which is too soon (we need to initialize the module variables first) -#define Self getSelf() - -static $objectName& getSelf() -{ - static $objectName ${objectName}_object; - return ${objectName}_object; -} +$objectName Self; struct DesignData { void *base; |