[Home] [Groups] - Message: [Prev in Group] [Next in Group]

nu.kanga.list.mud-dev

10695: Re: [MUD-Dev] How to debug a method taking a variable list of arguments?

[Full Header] [Plain Text]
From: Chris Gray <cg@ami-cg.GraySage.Edmonton.AB.CA>
Newsgroups: nu.kanga.list.mud-dev
Date: Sun, 13 Jun 1999 10:53:06 -0600
Organization: Kanga.Nu
[Ben Greear:]

>             Sprintf(buf, cstr(cs_entry, *ptr), argp);

Aren't you supposed to use 'va_arg' when accessing the arguments? It might
not be a straight pass-through. That, plus a cast to the expected type,
which usually is a straight pass-through.

--
Don't design inefficiency in - it'll happen in the implementation.

Chris Gray     cg@ami-cg.GraySage.Edmonton.AB.CA
               http://www.GraySage.Edmonton.AB.CA/cg/



_______________________________________________
MUD-Dev maillist  -  MUD-Dev@kanga.nu
http://www.kanga.nu/lists/listinfo/mud-dev