Raised This Month: $32 Target: $400
 8% 

[SDK] Meta_Detach


  
 
 
Thread Tools Display Modes
Author Message
sawce
The null pointer exception error and virtual machine bug
Join Date: Oct 2004
Old 12-15-2006 , 02:27   [SDK] Meta_Detach
#1

In the Meta_Detach of the SDK (~line 2330):

Code:
#ifdef FN_META_DETACH
	return FN_META_DETACH();
#endif	// FN_META_DETACH
	return TRUE;
This causes GCC to barf (not too sure about MSVC) because the macro in amxxmodule.h declares FN_META_DETACH as void.

Quote:
sdk/amxxmodule.cpp: In function 'int Meta_Detach(PLUG_LOADTIME, PL_UNLOAD_REASON)':
sdk/amxxmodule.cpp:2330: error: void value not ignored as it ought to be
It should be:

Code:
#ifdef FN_META_DETACH
	FN_META_DETACH();
#endif	// FN_META_DETACH
	return TRUE;
__________________
fyren sucks

Last edited by sawce the snail; 12-15-2006 at 03:34.
sawce is offline
BAILOPAN
Join Date: Jan 2004
Old 12-18-2006 , 20:57   Re: [SDK] Meta_Detach
#2

Thanks for the report. This is fixed as revision 3173.
__________________
egg
BAILOPAN is offline
 



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

Forum Jump


All times are GMT -4. The time now is 23:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode