CFanatic

Go Back   CFanatic > Programming > C# Programming

Join CFanatic Forum Now

c# can you force a function to NOT be inlined? topic posted under C# Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 04-29-2007, 12:43 AM
Junior Member
 
Join Date: Apr 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
codeunlock is on a distinguished road
| More
Question c# can you force a function to NOT be inlined?

Can I force a function to NEVER be inlined?

I want the call stack returned by:
System.Diagnostics.StackTrace callStack = new
System.Diagnostics.StackTrace();
to be such that:
System.Diagnostics.StackFrame frame = callStack.GetFrame(0);

is the function itself, NOT the function's caller (due to a release build making the function inlined into its caller)!

thanks!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
HideCaret() Windows API function doesn't work properly cygnusX C# Programming 1 05-30-2008 02:58 PM
HELP with function free() (stdlib.h) flexo87 C Programming 0 03-02-2008 10:01 AM
Write a value-returning function??????? Albaniankool C++ Programming 0 05-30-2007 08:52 AM
working of memset() function sureshN C Programming 3 05-28-2007 04:42 AM
WaitFor function Angus C++ Programming 0 11-11-2006 10:11 AM

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 04:15 AM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board