Sign in to follow this  
lincolnAce

Generating Pascal/custom string literals with C++ macro

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this