[opengtl-commits] [449] add access to the rand function (for now) |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/opengtl-commits Archives
]
Revision: 449
Author: cyrille
Date: 2008-10-12 21:54:43 +0200 (Sun, 12 Oct 2008)
Log Message:
-----------
add access to the rand function (for now)
Modified Paths:
--------------
trunk/OpenGTL/OpenShiva/OpenShiva/Compiler_p.cpp
Modified: trunk/OpenGTL/OpenShiva/OpenShiva/Compiler_p.cpp
===================================================================
--- trunk/OpenGTL/OpenShiva/OpenShiva/Compiler_p.cpp 2008-10-11 20:52:41 UTC (rev 448)
+++ trunk/OpenGTL/OpenShiva/OpenShiva/Compiler_p.cpp 2008-10-12 19:54:43 UTC (rev 449)
@@ -73,6 +73,7 @@
createStdLibFunction( "isnan_f", "isnan_f", GTLCore::Type::Boolean, 1, GTLCore::Type::Float);
createStdLibFunction( "isnan_h", "isnan_h", GTLCore::Type::Boolean, 1, GTLCore::Type::Float);
// C Math functions
+ createStdLibFunction( "rand", "rand", GTLCore::Type::Integer32, 0);
createStdLibFunction( "acos", "acosf", GTLCore::Type::Float, 1, GTLCore::Type::Float);
createStdLibFunction( "asin", "asinf", GTLCore::Type::Float, 1, GTLCore::Type::Float);
createStdLibFunction( "atan", "atanf", GTLCore::Type::Float, 1, GTLCore::Type::Float);