From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: Cannot use of LOCK_FUNCTION, END_OF_FUNCTION,... in classes? Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: <8qnriq$2a5$1 AT news DOT germany DOT net> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 27 X-Trace: /K49oErfoqLMCgwvaAwY94hZxTz6JEjO2OJtPkb5gfDQeRJR5+qE+R+i/HY2rw2HGbQiVseQtxQk!ENeDlHCo+HGHL/MURzqUDE70rCPdtBGnnBcepdXncVhxBZg7k1+G6op8GVtDh0nvcZHAmJi8owmo!dc0n7A== X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Mon, 25 Sep 2000 22:13:27 GMT Distribution: world Date: Mon, 25 Sep 2000 22:13:27 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Mon, 25 Sep 2000 17:37:59 +0200, "Martin Czamai" wrote: >Hello, > >my problem is that I want to lock functions (like interrupt service >routines) using the END_OF_FUNCTION and LOCK_FUNCTION macros from allegro in >classes. This doesn't work because MYFUNCNAME_end is not a member of >MYCLASS. Any idea how to fix this problem? >Thanks in advance for your help If you're using a class method as an Allegro timer handler, make sure both the method and the END_OF_FUNCTION are static. static void Class::my_timer(void) { } static END_OF_FUNCTION(Class::my_timer); --