[Abysmal-commit] SF.net SVN: abysmal:[249] abysmal/trunk
Status: Pre-Alpha
Brought to you by:
jlanger85
|
From: <jla...@us...> - 2009-04-06 07:25:51
|
Revision: 249
http://abysmal.svn.sourceforge.net/abysmal/?rev=249&view=rev
Author: jlanger85
Date: 2009-04-06 07:25:49 +0000 (Mon, 06 Apr 2009)
Log Message:
-----------
* fixed a serious bug in vector.h: dangling references to vectors could
be stored in expression objects when nested vectors are used.
This happend because some functions (eval, null_expr stuff and
meta_vector::sum/prod) took a const& vector and returned the same vector
as value. A referene to this temporary was then stored in the expression
object instead of the real vector
* added a debugging mode to vector.h which traces if any dangling
references are used when evaluating an expression. This mode is
enabled in the unit test and disabled in the game (since it
changes memory layout of the vectors and breaks usage in OpenGL
vertex arrays)
* added an option in CMakeList.txt to disable inlining (gcc only)
Modified Paths:
--------------
abysmal/trunk/CMakeLists.txt
abysmal/trunk/src/common/compat.h
abysmal/trunk/src/common/vector.h
abysmal/trunk/src/test/test_math.cpp
abysmal/trunk/src/test/vec_perftest/vec_perftest.cpp
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|