Jump to content
  • Advertisement
Sign in to follow this  
lincolnAce

Generating Pascal/custom string literals with C++ macro

This topic is 3502 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!