Menu

Braces/brackets in comments

Peter
2016-09-23
2016-09-24
  • Peter

    Peter - 2016-09-23

    This line compiled OK in an old version, but throws an error now:

    #define BMP180_ID 0xD0                'Device bus address (7 bit, can't change but used for testing)
    

    The error is Error: Unbalanced Braces and I am using compiler version 0.95.009 2016-08-09

    If I get rid of the apostrophe in can't, it works fine:

    #define BMP180_ID 0xD0                'Device bus address (7 bit, cant change but used for testing)
    
     
    • Anobium

      Anobium - 2016-09-24

      Good spot. The preprocessor is incorrection parsing the source file. I can send a revised preprocessor to resolve the issue.

      The test code I have just tried is works correctly.

        #define BMP180_ID 0xD0                'Device bus address (7 bit, can't change but used for testing)
        #define BMP180_ID 0xD0                'Device bus address (7 bit, cant change but used for testing)
        #define BMP180_ID 0xD0                b'00000000'
        Test=(1+  ')
        Test=(1+1)
        Test=(1+1) 'saasdf
        Test=(1+1) 'saasdf (
        Test=(1+1) 'saasdf ()
      

      Send me a SourceForge Personal Message with your email address. Do not post here unless you understand the risk.

      Anobium

       
  • Peter

    Peter - 2016-09-24

    I can live with some bad speling and grammer in comments until the next update of GCB. At least knowing the cause of the error means that it is easy to work around.

     
    • Anobium

      Anobium - 2016-09-24

      I was going to say... can't is bad grammar at my school.

      :-)

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.