ocehb: (Default)
[personal profile] ocehb
__VA_ARGS__

Ну и полезности:

#define DEBUG(fmt,...) fprintf (stderr,"%s:%s:%s " fmt "\n",\
                         __FILE__,__FUNCTION__,__LINE__,__VA_ARGS__)


проблема с отсутствием аргументов, DEBUG ("test") не прокатит,
надо DEBUG ("%s","test")

Date: 2006-06-08 05:14 pm (UTC)
From: [personal profile] alll
Ну так поставь
#DEFINE(...) fprintf (stderr,"%s:%s:%s ", __FILE__,__FUNCTION__,__LINE__), fprintf(__VA_ARGS__)
и будет щасье

Profile

ocehb: (Default)
ocehb

January 2021

S M T W T F S
     12
345 6789
10111213141516
17181920212223
24252627282930
31      

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 6th, 2026 12:15 am
Powered by Dreamwidth Studios