[Plib-cvs] plib/examples/src/psl psl_demo.cxx,1.3,1.4
Brought to you by:
sjbaker
From: Steve B. <sj...@us...> - 2002-09-05 14:59:00
|
Update of /cvsroot/plib/plib/examples/src/psl In directory usw-pr-cvs1:/tmp/cvs-serv1575/plib/examples/src/psl Modified Files: psl_demo.cxx Log Message: Function calls now work. Index: psl_demo.cxx =================================================================== RCS file: /cvsroot/plib/plib/examples/src/psl/psl_demo.cxx,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- psl_demo.cxx 5 Sep 2002 07:09:13 -0000 1.3 +++ psl_demo.cxx 5 Sep 2002 14:58:56 -0000 1.4 @@ -5,10 +5,14 @@ #include <plib/psl.h> -float hello ( int argc, float *argv, PSL_Program *p ) +PSL_Variable hello ( int argc, PSL_Variable *argv, PSL_Program *p ) { printf ( "I am %s.\n", (char *)( p->getUserData ()) ) ; - return 0.0f ; + + PSL_Variable ret ; + ret.f = 0.0f ; + + return ret ; } |