Changeset 6439 for code/branches/gamestate/src/libraries/core
- Timestamp:
- Jan 3, 2010, 3:54:34 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gamestate/src/libraries/core/Language.h
r6417 r6439 52 52 #include <cassert> 53 53 #include "util/Singleton.h" 54 55 #define AddLanguageEntry(label, fallbackstring) \56 orxonox::Language::getInstance().addEntry(label, fallbackstring)57 58 #define GetLocalisation(label) \59 orxonox::Language::getInstance().getLocalisation(label)60 61 54 62 55 namespace orxonox … … 140 133 static Language* singletonPtr_s; 141 134 }; 135 136 //! Shortcut function for Language::addEntry 137 inline void AddLanguageEntry(const LanguageEntryLabel& label, const std::string& fallbackString) 138 { 139 Language::getInstance().addEntry(label, fallbackString); 140 } 141 142 //! Shortcut function for Language::getLocalisation 143 inline const std::string& GetLocalisation(const LanguageEntryLabel& label) 144 { 145 return Language::getInstance().getLocalisation(label); 146 } 142 147 } 143 148
Note: See TracChangeset
for help on using the changeset viewer.