Generating Pascal/custom string literals with C++ macro

Started by
2 comments, last by lincolnAce 15 years, 5 months ago
Hi all, Does anyone know if it is possible to generate Pascal/custom string literals via a C++ macro? For example: Just as 'SomeFunction("Hello")' would implicitly construct an ASCIIZ string and compile its associated address within the function call, is it possible to construct a macro of the form 'SomeFunction(_MyMacro("Hello"))' in order to generate compile-time Pascal/custom string literals? All comments, good or bad, are gratefully received. Cheers, Lee.
Advertisement
If you really need pascal strings why don't you check if your compiler has support for them?
Relevant thread.
ROFL ROFL ROFL!!!!

Who on earth derived the class name "Cliteral"; best thing I've seen since someone wrote an entire COBOL program in the 80's, using nothing but profanity; you know "open legs", "insert...."<cough>

Anyhow, on a more serious note, I think this certainly touches upon the functionality that I'm looking for.

I shall study your code a little closer tomorrow.

Cheers dude!

This topic is closed to new replies.

Advertisement