Changeset 2257
- Timestamp:
- Jan 22, 2013, 1:48:51 AM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 1 deleted
- 4 edited
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Makefile.am
r2238 r2257 10 10 audio.cpp audio.h scene.cpp scene.h font.cpp font.h layer.cpp layer.h \ 11 11 map.cpp map.h entity.cpp entity.h ticker.cpp ticker.h lolgl.h \ 12 tileset.cpp tileset.h forge.cpp forge.h video.cpp video.h log.cpp log.h \ 13 timer.cpp timer.h bitfield.h profiler.cpp profiler.h \ 12 tileset.cpp tileset.h forge.cpp forge.h video.cpp video.h \ 14 13 world.cpp world.h sample.cpp sample.h sampler.cpp sampler.h \ 15 text.cpp text.h emitter.cpp emitter.h numeric.h \14 profiler.cpp profiler.h text.cpp text.h emitter.cpp emitter.h numeric.h \ 16 15 worldentity.cpp worldentity.h gradient.cpp gradient.h gradient.lolfx \ 17 16 platform.cpp platform.h sprite.cpp sprite.h camera.cpp camera.h \ 18 17 \ 19 lol/unit.h lol/debug.h \20 18 lol/base/types.h lol/base/array.h lol/base/string.h lol/base/hash.h \ 21 19 lol/base/map.h \ 22 20 lol/math/vector.h lol/math/half.h lol/math/real.h lol/math/remez.h \ 23 lol/math/math.h \ 24 lol/math/geometry.h \ 25 lol/sys/init.h \ 21 lol/math/math.h lol/math/geometry.h \ 22 lol/sys/init.h lol/sys/log.h lol/sys/thread.h lol/sys/timer.h \ 26 23 lol/image/color.h \ 24 lol/unit.h lol/debug.h \ 27 25 \ 28 26 generated/location.hh generated/position.hh generated/stack.hh \ … … 72 70 mesh/mesh.cpp mesh/mesh.h \ 73 71 \ 74 sys/init.cpp \75 sys/threadbase.h sys/thread.h\72 sys/init.cpp sys/log.cpp sys/timer.cpp \ 73 sys/threadbase.h \ 76 74 \ 77 75 image/image.cpp image/image.h image/image-private.h \ -
trunk/src/core.h
r2238 r2257 90 90 91 91 #include <lol/sys/init.h> 92 #include <lol/sys/log.h> 92 93 #include <lol/sys/thread.h> 94 #include <lol/sys/timer.h> 93 95 94 96 #include <lol/image/color.h> 95 97 96 98 #include "numeric.h" 97 #include "timer.h"98 99 99 100 // Static classes 100 #include "log.h"101 101 #include "platform.h" 102 102 #include "video.h" -
trunk/src/lol/sys/log.h
r2256 r2257 2 2 // Lol Engine 3 3 // 4 // Copyright: (c) 2010-201 1Sam Hocevar <sam@hocevar.net>4 // Copyright: (c) 2010-2013 Sam Hocevar <sam@hocevar.net> 5 5 // This program is free software; you can redistribute it and/or 6 6 // modify it under the terms of the Do What The Fuck You Want To … … 15 15 // 16 16 17 #if !defined __LOL_ LOG_H__18 #define __LOL_ LOG_H__17 #if !defined __LOL_SYS_LOG_H__ 18 #define __LOL_SYS_LOG_H__ 19 19 20 20 #include <stdint.h> … … 52 52 } /* namespace lol */ 53 53 54 #endif // __LOL_ LOG_H__54 #endif // __LOL_SYS_LOG_H__ 55 55 -
trunk/src/lol/sys/timer.h
r2256 r2257 2 2 // Lol Engine 3 3 // 4 // Copyright: (c) 2010-201 1Sam Hocevar <sam@hocevar.net>4 // Copyright: (c) 2010-2013 Sam Hocevar <sam@hocevar.net> 5 5 // This program is free software; you can redistribute it and/or 6 6 // modify it under the terms of the Do What The Fuck You Want To … … 14 14 // 15 15 16 #if !defined __LOL_ TIMER_H__17 #define __LOL_ TIMER_H__16 #if !defined __LOL_SYS_TIMER_H__ 17 #define __LOL_SYS_TIMER_H__ 18 18 19 19 namespace lol … … 38 38 } /* namespace lol */ 39 39 40 #endif // __LOL_ TIMER_H__40 #endif // __LOL_SYS_TIMER_H__ 41 41 -
trunk/src/lolcore.vcxproj
r2239 r2257 273 273 <ClCompile Include="input\stick.cpp" /> 274 274 <ClCompile Include="layer.cpp" /> 275 <ClCompile Include="log.cpp" />276 275 <ClCompile Include="map.cpp" /> 277 276 <ClCompile Include="math\geometry.cpp" /> … … 295 294 <ClCompile Include="sprite.cpp" /> 296 295 <ClCompile Include="sys\init.cpp" /> 296 <ClCompile Include="sys\log.cpp" /> 297 <ClCompile Include="sys\timer.cpp" /> 297 298 <ClCompile Include="text.cpp" /> 298 299 <ClCompile Include="ticker.cpp" /> … … 307 308 <ClInclude Include="application\application.h" /> 308 309 <ClInclude Include="audio.h" /> 309 <ClInclude Include="bitfield.h" />310 310 <ClInclude Include="bullet\btBulletCollisionCommon.h" /> 311 311 <ClInclude Include="bullet\btBulletDynamicsCommon.h" /> … … 585 585 <ClInclude Include="input\stick.h" /> 586 586 <ClInclude Include="layer.h" /> 587 <ClInclude Include="log.h" />588 587 <ClInclude Include="loldebug.h" /> 589 588 <ClInclude Include="lolgl.h" /> … … 602 601 <ClInclude Include="lol\math\vector.h" /> 603 602 <ClInclude Include="lol\sys\init.h" /> 603 <ClInclude Include="lol\sys\log.h" /> 604 604 <ClInclude Include="lol\sys\thread.h" /> 605 <ClInclude Include="lol\sys\timer.h" /> 605 606 <ClInclude Include="lol\unit.h" /> 606 607 <ClInclude Include="mesh\mesh.h" /> -
trunk/src/lolcore.vcxproj.filters
r2226 r2257 193 193 <Filter>...</Filter> 194 194 </ClCompile> 195 <ClCompile Include="log.cpp">196 <Filter>...</Filter>197 </ClCompile>198 195 <ClCompile Include="map.cpp"> 199 196 <Filter>...</Filter> … … 753 750 <Filter>...</Filter> 754 751 </ClInclude> 755 <ClInclude Include="bitfield.h">756 <Filter>...</Filter>757 </ClInclude>758 752 <ClInclude Include="camera.h"> 759 753 <Filter>...</Filter> … … 784 778 </ClInclude> 785 779 <ClInclude Include="layer.h"> 786 <Filter>...</Filter>787 </ClInclude>788 <ClInclude Include="log.h">789 780 <Filter>...</Filter> 790 781 </ClInclude> -
trunk/src/sys/log.cpp
r2256 r2257 83 83 }; 84 84 85 char buf[4096]; 86 vsnprintf(buf, 4095, fmt, ap); 87 buf[4095] = '\0'; 88 89 __android_log_print(prio[type], "LOL", "[%d] %s", (int)gettid(), buf); 85 String buf = String::Printf(fmt, ap); 86 __android_log_print(prio[type], "LOL", "[%d] %s", (int)gettid(), &buf[0]); 90 87 91 88 #else … … 99 96 100 97 # if defined _WIN32 101 char buf[4096]; 102 vsnprintf(buf, 4095, fmt, ap); 103 buf[4095] = '\0'; 104 OutputDebugString(prefix[type]); 105 OutputDebugString(": "); 106 OutputDebugString(buf); 98 String buf = String(prefix[type]) + ": " + String::Printf(fmt, ap); 99 OutputDebugString(&buf[0]); 107 100 # else 108 101 fprintf(stderr, "%s: ", prefix[type]);
Note: See TracChangeset
for help on using the changeset viewer.