• 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
DrawMenuBar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DrawMenuBar


  • Subject: DrawMenuBar
  • From: Jonas Maebe <email@hidden>
  • Date: Sat, 25 Jun 2005 09:59:36 +0200

Hello,

How come the assembler code for the following program does not contain any call at all to DrawMenuBar? (even when compiled with -O0)

---
#include <Carbon/Carbon.h>

int main(int argc, char* argv[])
{           OSStatus  err;
        err = fesetround(FE_TOWARDZERO);
        DrawMenuBar;
        return err;
}
---

In the gcc -E output, all I can find is

# 2987 "/System/Library/Frameworks/Carbon.framework/Frameworks/ HIToolbox.framewo
rk/Headers/Menus.h" 3
extern void
DrawMenuBar(void) ;



That does not seem to me like something which can be optimized away.

Thanks,


Jonas _______________________________________________ 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: DrawMenuBar
      • From: Frederick Cheung <email@hidden>
  • Prev by Date: Re: Subversion Included?
  • Next by Date: Re: problems/bugs in xCode
  • Previous by thread: Static lib dependent project
  • Next by thread: Re: DrawMenuBar
  • Index(es):
    • Date
    • Thread