News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Inline Strings and sizeof

Started by BlackVortex, March 15, 2010, 01:52:15 AM

Previous topic - Next topic

BlackVortex

I'm tired of the long WriteConsole invokes filling my source for such a oft used and trivial task as printing to the console, so I decided to make a macro for it. My main problem is that I can't use sizeof to get an inline string's length.

Also, I can't find reference to inline strings in GoAsm's documentation.

I want to do :
sizeof("Some string here")
with or without parenthesis.

Help ? (I think I'm gonna put lstrlen in my macro for now, or a tiny null-checking loop, but it feels bad, because the string's length is known at assembling time)   :'(