home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!news.mentorg.com!dgrammel!dgrammel
- From: dgrammel@dgrammel.mentorg.com (Dave Grammel)
- Subject: Re: & of inline functions
- Sender: news@news.mentorg.com (News User)
- Message-ID: <1992Dec15.233031.11712@news.mentorg.com>
- Date: Tue, 15 Dec 1992 23:30:31 GMT
- References: <1992Dec13.185310.20140@math.ufl.edu>
- Nntp-Posting-Host: dgrammel.mentorg.com
- Organization: mentor
- Keywords:
- Followup-To:
- Lines: 28
-
- In article <1992Dec13.185310.20140@math.ufl.edu>, x9999bvj@maple.circa.ufl.edu writes:
- |>
- |> What is the official method for handling taking the address of an inline
- |> function? For example, if you do this:
-
- Don't make it inline.
-
- |>
- |> inline void Hello( void )
- |> {
- |> puts("Hello");
- |> }
- |>
- |> void HelloFnc( void (*fnc)(void) )
- |> {
- |> fnc();
- |> }
- |>
- |> void main( void )
- |> {
- |> HelloFnc( Hello );
- |> }
-
- --
- Dave Grammel ||
- Mentor Graphics Corportation || If it's not broke bad enough,
- dave_grammel@mentorg.com || don't fix it.
- (503) 685-7000 ||
-