Changeset 3366 for code/branches/resource/src/core/LuaBind.h
- Timestamp:
- Jul 29, 2009, 10:27:10 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/resource/src/core/LuaBind.h
r3359 r3366 45 45 } 46 46 47 #include "util/Singleton.h" 48 47 49 // tolua_begin 48 50 namespace orxonox 49 51 { 50 class _CoreExport LuaBind 52 class _CoreExport LuaBind : public Singleton<LuaBind> 51 53 { 54 // tolua_end 55 friend class Singleton<LuaBind>; 52 56 53 // tolua_end54 57 struct LoadS { 55 58 const char *s; … … 61 64 ~LuaBind(); 62 65 63 inline static LuaBind& getInstance() { assert(singletonRef_s); return *LuaBind::singletonRef_s; } // tolua_export66 static LuaBind& getInstance() { return Singleton<LuaBind>::getInstance(); } // tolua_export 64 67 65 68 void loadFile(const std::string& filename, bool luaTags); … … 89 92 90 93 private: 91 static LuaBind* singleton Ref_s;94 static LuaBind* singletonPtr_s; 92 95 93 96 std::string luaSource_;
Note: See TracChangeset
for help on using the changeset viewer.