Changeset c4c426b in sasmodels


Ignore:
Timestamp:
May 5, 2016 10:42:03 AM (9 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
948b8c1
Parents:
47e498b
Message:

line numbers need to be off by one since some versions of msvc don't accept #line 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/generate.py

    r47e498b rc4c426b  
    464464              for f in model_sources(model_info) 
    465465              # Add #line directives at the start of each file 
    466               for p in ('#line 0 "%s"'%f.replace('\\', '\\\\'), open(f).read()) 
     466              for p in ('#line 1 "%s"'%f.replace('\\', '\\\\'), open(f).read()) 
    467467              ] 
    468468    source.append('#line 133 "%s"'%C_KERNEL_TEMPLATE_PATH.replace('\\', '\\\\')) 
Note: See TracChangeset for help on using the changeset viewer.