I\'m looking for the solution to define a byte stream as a macro from gcc/g++ command line via option -D, e.g. -Dxxx=byte_stream.
Below is the code snippet,
First this depends a lot from your environment, and the shell that you are using. For /bin/sh you could try something like
/bin/sh
-DMAGIC_BYTES='"\x01\x02"'
that is escape the whole string with ''.
''