- Timestamp:
- Oct 20, 2010, 5:35:10 PM (14 years ago)
- Location:
- code/branches/ois_update/src/libraries/core
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ois_update/src/libraries/core/BaseObject.h
r7570 r7571 238 238 }; 239 239 240 #ifdef csadasdasf 241 struct CompilerError 242 { 243 void CompilerError() {} 244 }; 245 #endif 246 240 247 template <class T, int templatehack2> 241 248 struct SuperFunctionCondition<0, T, 0, templatehack2> 242 249 { 243 static void verify()250 static void superCheck() 244 251 { 245 252 SuperFunctionCondition<0, T, 0, templatehack2>::apply(static_cast<T*>(0)); 246 SuperFunctionCondition<0 + 1, T, 0, templatehack2>:: verify();253 SuperFunctionCondition<0 + 1, T, 0, templatehack2>::superCheck(); 247 254 } 248 255 -
code/branches/ois_update/src/libraries/core/PathConfig.cc
r6417 r7571 95 95 #elif defined(ORXONOX_PLATFORM_APPLE) 96 96 char buffer[1024]; 97 u nsigned longpath_len = 1023;97 uint32_t path_len = 1023; 98 98 if (_NSGetExecutablePath(buffer, &path_len)) 99 99 ThrowException(General, "Could not retrieve executable path."); -
code/branches/ois_update/src/libraries/core/Super.h
r7564 r7571 94 94 struct SuperFunctionCondition<functionnumber, T, 0, templatehack2> \ 95 95 { \ 96 static void verify() \96 static void superCheck() \ 97 97 { \ 98 98 SuperFunctionCondition<functionnumber, T, 0, templatehack2>::apply(static_cast<T*>(0)); \ 99 SuperFunctionCondition<functionnumber + 1, T, 0, templatehack2>:: verify(); \99 SuperFunctionCondition<functionnumber + 1, T, 0, templatehack2>::superCheck(); \ 100 100 } \ 101 101 \ … … 132 132 struct SuperFunctionCondition<functionnumber, baseclass, 0, templatehack2> \ 133 133 { \ 134 static void verify() \135 { \ 136 SuperFunctionCondition<functionnumber + 1, baseclass, 0, templatehack2>:: verify(); \134 static void superCheck() \ 135 { \ 136 SuperFunctionCondition<functionnumber + 1, baseclass, 0, templatehack2>::superCheck(); \ 137 137 } \ 138 138 }; … … 150 150 struct SuperFunctionCondition<functionnumber, T, 0, templatehack2> 151 151 { 152 static void verify()152 static void superCheck() 153 153 { 154 154 // This call to the apply-function is the whole check. By calling the function with … … 156 156 SuperFunctionCondition<functionnumber, T, 0, templatehack2>::apply(static_cast<T*>(0)); 157 157 158 // Go go the verifyfor of next super-function (functionnumber + 1)159 SuperFunctionCondition<functionnumber + 1, T, 0, templatehack2>:: verify();158 // Go go the superCheck for of next super-function (functionnumber + 1) 159 SuperFunctionCondition<functionnumber + 1, T, 0, templatehack2>::superCheck(); 160 160 } 161 161 … … 202 202 struct SuperFunctionCondition<functionnumber, baseclass, 0, templatehack2> \ 203 203 { \ 204 // The verifyfunction acts like the fallback - it advances to the check for the next super-function (functionnumber + 1)205 static void verify() \206 { \ 207 SuperFunctionCondition<functionnumber + 1, baseclass, 0, templatehack2>:: verify(); \204 // The superCheck function acts like the fallback - it advances to the check for the next super-function (functionnumber + 1) 205 static void superCheck() \ 206 { \ 207 SuperFunctionCondition<functionnumber + 1, baseclass, 0, templatehack2>::superCheck(); \ 208 208 } \ 209 209 }; … … 303 303 struct SuperFunctionCondition 304 304 { 305 static void verify() {}305 static void superCheck() {} 306 306 }; 307 307 … … 338 338 struct SuperFunctionCondition<functionnumber, T, templatehack1, templatehack2> \ 339 339 { \ 340 static void verify() \340 static void superCheck() \ 341 341 { \ 342 SuperFunctionCondition<functionnumber + 1, T, templatehack1, templatehack2>:: verify(); \342 SuperFunctionCondition<functionnumber + 1, T, templatehack1, templatehack2>::superCheck(); \ 343 343 } \ 344 344 }; \ … … 421 421 // If this function gets called, the header-file of the super function is not 422 422 // included, so this fallback template (templatehack not specialized) is used 423 static void verify()423 static void superCheck() 424 424 { 425 425 // Calls the condition-check of the next super-function (functionnumber + 1) 426 SuperFunctionCondition<functionnumber + 1, T, templatehack1, templatehack2>:: verify();426 SuperFunctionCondition<functionnumber + 1, T, templatehack1, templatehack2>::superCheck(); 427 427 } 428 428 }; … … 574 574 virtual void createSuperFunctionCaller() const 575 575 { 576 //SuperFunctionCondition<0, T, 0, 0>:: verify();576 //SuperFunctionCondition<0, T, 0, 0>::superCheck(); 577 577 } 578 578
Note: See TracChangeset
for help on using the changeset viewer.