delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/09/25/18:30:15.1

From: Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p>
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: <n8jvsskmu0b5sb4qa1f2uvheu1bcirjqf7@4ax.com>
References: <8qnriq$2a5$1 AT news DOT germany DOT net>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
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"
<M DOT Czamai AT peak-system DOT com> 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);

-- 
<O
( \   GNOME vs. KDE: the game!
 X    http://pineight.8m.com/nes.htm

This is McAfee VirusScan. Add these two lines to your signature to
prevent the spread of signature viruses.  http://www.mcafee.com/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019