gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gcl-devel] inline function syntax chaos


From: Camm Maguire
Subject: [Gcl-devel] inline function syntax chaos
Date: Sat, 25 Apr 2015 09:32:02 -0400

Greetings!  Can anyone suggest a portable usage of (the old) extern
inline function syntax, i.e. where in a header one used to be able to
say

#ifndef EXTER
#define EXTER extern
#endif

EXTER in foo(void) {return 1;}

and then in a given C file

#define EXTER
#include <header.h>

Here when compiling with debugging, one gets function calls, and with
optimization, one gets inlining, but also a function entry point for
invocation when debugging with gdb.

Take care,
-- 
Camm Maguire                                        address@hidden
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah



reply via email to

[Prev in Thread] Current Thread [Next in Thread]