This is defined as *c return value,
gluErrorString_jgl3_
'glu32.dll gluErrorString *c i'&(15!:0)
But returns an int
gluErrorString_jgl3_ 1281
+---------+----+
|183439344|1281|
+---------+----+
What is the meaning of this? It should probably
do an automatic memr r,0 _1 ?
Further, this does not work:
gluErrorString=: 'glu32.dll gluErrorString > *c i'&(15!:0)
gluErrorString 1281
|domain error: gluErrorString
| gluErrorString 1281
cder''
5 0
Instead it could return unboxed result string (memr r,0 _1).
If someone really wanted an address, it should be
gluErrorString=: 'glu32.dll gluErrorString > i i'&(15!:0)
memr 0 _1,~gluErrorString 1281
invalid value
Finally definition of gsgeterror does not work for these reasons:
gsgeterror
3 : 'if. #j=. glGetError'''' do. wdinfo ''OpenGL'';gluErrorString j end.'
It should be (unless cd fixed)
gsgeterror=: 3 : 'if. #j=. glGetError$0 do. wdinfo ''OpenGL'';memr 0
_1,~0{::gluErrorString j
end.'
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm