delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/05/09:31:50

From: ams AT ludd DOT luth DOT se (Martin Str|mberg)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: GCC : Not passing values correctly in functon
Date: 5 Sep 1998 12:52:58 GMT
Organization: University of Lulea, Sweden
Lines: 16
Message-ID: <6src7a$83j$3@news.luth.se>
References: <35f024a8 DOT 0 AT newsread1 DOT dircon DOT co DOT uk>
NNTP-Posting-Host: queeg.ludd.luth.se
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Siddiqui (siddiqui AT dircon DOT co DOT uk) wrote:
: I wrote a function that when called requests a few input variables like
: "void render(float xpos, float ypos)", but when I call it and give it some
: parameters it doesn't regster the correct value I gave it. I found this out
: using some debug code I wrote around it. Some of the passed parameters are
: actually global variables and some are not, but then I can't see how this
: can make any difference.
: 
: Any advice/omments would be very appreciated,

Have you prototyped your function correctly?


Holmboe, Symphony, No. 7,

							MartinS

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019