MUD-Dev
mailing list archive
[ Other Periods
| Other mailing lists
| Search
]
Date:
[ Previous
| Next
]
Thread:
[ Previous
| Next
]
Index:
[ Author
| Date
| Thread
]
Re: [MUD-Dev] How to debug a method taking a variable list of arguments?
[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
- Thread context:
- [MUD-Dev] ADMIN: Searching on MUD-Dev archives,
claw claw#kanga,nu, Mon 14 Jun 1999, 04:20 GMT
- [MUD-Dev] Twisted Reality,
claw claw#kanga,nu, Mon 14 Jun 1999, 01:29 GMT
- [MUD-Dev] How to debug a method taking a variable list of arguments?,
Ben Greear greear#cyberhighway,net, Sun 13 Jun 1999, 07:01 GMT
- [MUD-Dev] Game economics,
Matthew Mihaly diablo#best,com, Sat 12 Jun 1999, 00:50 GMT
- [MUD-Dev] Playing the monsters,
David95037 David95037#aol,com, Fri 11 Jun 1999, 19:26 GMT
[ Other Periods
| Other mailing lists
| Search
]