mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-02-13 15:35:25 +00:00
return what you're printing
git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/trunk@1390 6778bc44-b910-0410-a7a0-be141de4315d
This commit is contained in:
@ -88,9 +88,10 @@ return (float)(!(int)arg_list[0]);
|
||||
|
||||
static inline float if_wrapper(float * arg_list) {
|
||||
|
||||
if ((int)arg_list[0] == 0)
|
||||
return arg_list[2];
|
||||
return arg_list[1];
|
||||
if ((int)arg_list[0] == 0)
|
||||
return arg_list[2];
|
||||
//std::cout <<"NOT ZERO: " << arg_list[0] << std::endl;
|
||||
return arg_list[1];
|
||||
}
|
||||
|
||||
|
||||
@ -178,7 +179,7 @@ return (sqrt (arg_list[0]));
|
||||
static inline float print_wrapper(float * arg_list) {
|
||||
|
||||
std::cout << arg_list[0] << std::endl;
|
||||
return 0;
|
||||
return arg_list[0];
|
||||
}
|
||||
|
||||
static inline float nchoosek_wrapper(float * arg_list) {
|
||||
|
||||
Reference in New Issue
Block a user