• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Inline assember interferes with #pragma options align
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Inline assember interferes with #pragma options align


  • Subject: Inline assember interferes with #pragma options align
  • From: Steve Baxter <email@hidden>
  • Date: Tue, 21 Jun 2005 19:43:34 +0100

Hi,

I'm trying to move a CW project to XCode and I've come across a weird problem. If I use inline assember, it messes up the #pragma options align stack. For instance, this code will cause an error:

int main (int argc, char * const argv[])
{
     asm
    {
    }

    #pragma options align=mac68k

    struct    x {
        short        a;
        short        b;
    };

    #pragma options align=reset
}

The error is "error: too many #pragma options align=reset"

Has anyone seen this?  Does anyone know of a workaround?

Cheers,

Steve.

Stephen Baxter
Software Development Manager
Improvision
email@hidden
+44-2476-692229


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Inline assember interferes with #pragma options align
      • From: Stan Shebs <email@hidden>
  • Prev by Date: Re: 10.2.8 SDK Cross-development
  • Next by Date: Re: Re: 10.2.8 SDK Cross-development
  • Previous by thread: [SOLVED] Re: 10.2.8 SDK Cross-development
  • Next by thread: Re: Inline assember interferes with #pragma options align
  • Index(es):
    • Date
    • Thread