Skip to content

Commit c5d1696

Browse files
author
rbyrne
committedNov 13, 2006
. mention that __inline could be used to align inline functions, eg in category.h
1 parent d24097b commit c5d1696

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
 

‎msvc6/README

+5-4
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,11 @@ Another irritating point is that msvc6 does not support variable argument
9494
macros...we handle that by defining the sd_debug() macros to be functions
9595
on Windows, where variable numbers of arguments are supported.
9696

97-
Similar issue for the 'inline' directive--where the function was not performance
98-
critical just drop the 'inline', where it is performance critical but
99-
the function can be rewritten as a macro then do that, otherwise, too bad, just
100-
have to drop the inline and have a function call.
97+
The inline directive on Windows is either __inline or __forceinline. See the Mincrosoft
98+
language reference for Visual C++ 6.0 for details on how they work. You will see some points
99+
in the code, for example in category.h where on Windows we redefine an inline the function
100+
as a macro. This is not really required as we could just redefine inline to be __inline
101+
in sd_xplatform.h.
101102

102103
The getopt style function does not exist on Windows, so we implemented one ourselves.
103104

0 commit comments

Comments
 (0)