lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Use \\ as \

/Erik

Groleo Marius wrote:

Hi

I'm passing a string from LUA to a c++ function.
  The problem is that when I'm trying to pass something like:
  "\Wabc\new\trial"
  \W from \Wabc is regarded as an escaped character.
  the same thing for \n from \new and \t from trial.
  How can I pass the string to the c++ function, so  the \W wont be
  treated as an escape
  character.