Jump to content

You can get return values with __builtin_return_address(int)


2 posts in this topic

Recommended Posts

Posted

If you need to see where a function is being called from you can do

 

if(__builtin_return_address(0) == (void *)/*offset*/){
	//...
}

 

×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines