[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] [C] debug udprint funktion ala printf



On Sun, 23 Nov 2003 23:26:01 +0100
Peter Maersk-Moller <sslug@sslug> wrote:

> GNU's compiler understøtter *variadic macros*, altså macroer med variabelt
> antal (og typer) parametre.

Hvis man programmerer i C kan man normalt bruge et variabelt antal
parametre til funktioner uden at bruge variadic macros.

Det anbefales dog kun, hvis man ved, hvilke assembler instruktioner,
der genereres nedenunder.

Den således programmerede skrækkelige xprintf(char* fmt, ...)
som vil være afhængig af maskinen i den grad, isoleres i en fil,
der ikke er portabel, sådan uden videre.

Variadic Macros er udmærkede, men er ikke det, som Kim Schulz har
brug for lige nu, tror jeg.





-- 
sslug@sslug -- http://d-axel.dk/


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:10 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *