Book a Demo

Author Topic: C++ includes generated for Linux  (Read 2211 times)

medved

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
C++ includes generated for Linux
« on: August 03, 2011, 03:12:05 am »
Hi-

When I generate C++ for Linux, the files which get included are doing the slashes the wrong way (/ instead of \).  Is there any way to change this in the Code Generation Templates?  If there is, I don't see how.  This is painful if you do any synchronising/regenerating as you always have to fix the slashes.

M

medved

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: C++ includes generated for Linux
« Reply #1 on: August 11, 2011, 10:11:31 pm »
For anyone interested, this is what EA got back to me with:

The following template code should allow you to perform the change...
Code: [Select]
$bs = "\\"
$bs = %LEFT($bs, 1)%
%REPLACE( fileImports, $bs, "/" )%