Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

The Problem

Name: Fart Commander 2011-04-15 12:27

This is the prototype for the sprintf() function in MS Visual C.


#pragma warning(push)
#pragma warning(disable:4793)
__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_ARGLIST(int, __RETURN_POLICY_SAME, _CRTIMP, sprintf, vsprintf, __out_z char, _Dest, __in_z __format_string const char *, _Format)
#pragma warning(pop)


If you ever catch yourself thinking "Hey, I could come up with a clever macro to do this repetitive work for me," you should ask yourself a couple of things before you start using it:
1) Does the macro improve readability?
2) Does the macro improve maintainability?

If the answer to either of those is "no," then just don't fucking do it.  No one is going to suck your dick for coming up with a macro that makes life difficult for everyone who uses your API.

Name: Anonymous 2011-04-15 12:33

Go away.

Name: Fart Commander 2011-04-15 12:56

>>2
You're right.  This topic far too programming-related to have anything to do with /prog/.
Please disregard this thread resume "check my dubs" and FrozenVoid threads immediately.

Name: Anonymous 2011-04-15 13:00

>>3
1) It is known that C and C++ suck at abstraction.
2) It is known that Cpp (the preprocessor) sucks giant cocks.
3) Visual C++.
4) Stop with that ``fart'' and ``autism'' shit. It doesn't belong to /prog/. Get out.

Name: Anonymous 2011-04-15 13:02

>>4
Actually, "Fart Commander" is a /prog/ meme.  Perhaps it is you that doesn't "belong to /prog/."

Name: Anonymous 2011-04-15 13:07

>>5
No, you spamming piece of shit, it belongs to /prog/ as much as that other retarded ``jews'' spammer (you).

Name: Anonymous 2011-04-15 13:11

>>6
you've just been HURT FEELINGS AND BUTT RANGED

Name: Anonymous 2011-04-15 13:14

>>6
Are you trying to say "belongs on /prog/?"  Because that would make more sense.

Name: Anonymous 2011-04-15 13:39

DICENTIS,
 EGO SUM ABELSON ET SUSSMAN,
 PRIMUS ET RELIQUUS,
 CARUS ET CUDDARUS.

Name: Anonymous 2011-04-15 13:40

DICENTIS,
 EGO SUM ABELSON ET SUSSMAN,
 PRIMUS ET RELIQUUS,
 CARUS ET CUDDARUS.

Name: Anonymous 2011-04-15 13:41

DICENTIS,
 EGO SVM ABELSON ET SVSSMAN,
 PRIMVS ET RELIQVVS,
 CARVS ET CVDDARVS.

Name: Anonymous 2011-04-15 13:43

DICENTIS,
 EGO SVM ABELSON ET SVSSMAN,
 PRIMVS ET RELIQVVS,
 CARVS ET CVDDARVS.

Name: Anonymous 2011-04-15 13:45

DICENTIS,
 EGO SVM ABELSON ET SVSSMAN,
 PRIMVS ET RELIQVVS,
 CARVS ET CVDDARVS.

Name: Anonymous 2011-04-15 13:47

DICENTIS,
 EGO SVM ABELSON ET SVSSMAN,
 PRIMVS ET RELIQVVS,
 CARVS ET CVDDARVS.

Name: Anonymous 2011-04-15 13:48

DICENTIS,
 EGO SVM ABELSON ET SVSSMAN,
 PRIMVS ET RELIQVVS,
 CARVS ET CVDDARVS.

Name: Anonymous 2011-04-15 18:34

>>1
Microsoft is just trying to get you to stop using the shitty standard C libraries that are a security nightmare.  Don't forget, those functions are the reason software is riddled with buffer overflows today.

Name: Anonymous 2011-04-15 21:01

>>1
What version is that? MS Visual C 6 only has
_CRTIMP int __cdecl sprintf(char *, const char *, ...);

>>16
I bet you think guns are the reason people get killed too (no, this is not going to become a discussion of werecows). Blame the incompetent programmers who shouldn't be writing code, not the tools.

Name: Anonymous 2011-04-15 21:02

>>17 Guns don't kill people. But I might? ;P

Name: Anonymous 2011-04-15 21:04

>>18

fuck off, bot

Name: Anonymous 2011-04-15 21:06

>>19
You have far too much faith in humanity. If we ever made a bot this good, I know a guy who will suck EVERYONES dick. If you want it, ya know. :P ... (bleh,lol)

Name: Anonymous 2011-04-16 1:07

>>16
And Microsoft's standard C lib is any better?
Bitch, please!

Name: Anonymous 2011-04-16 7:07

Anyone else think the thread title looks like some rapper's album title

Name: Anonymous 2011-04-16 11:32

>>22
What's wrong with you?

Name: Anonymous 2011-04-16 11:45

>>23
autism.

Name: Anonymous 2011-04-16 19:05

#define ENTERPRISE_FOR_LOOP_MACRO(...) for (__VA_LIST__)

Don't change these.
Name: Email:
Entire Thread Thread List