s-news
[Top] [All Lists]

[S] Corrupt C/C++-MACROS???????

To: S-News Mailinglist <s-news@wubios.wustl.edu>
Subject: [S] Corrupt C/C++-MACROS???????
From: Oliver Klinger <klinger@lkn.e-technik.tu-muenchen.de>
Date: Mon, 29 Jun 1998 14:16:40 +0200
Organization: TU München
Reply-to: klinger@iname.com
Sender: owner-s-news@wubios.wustl.edu
When programming under MS Visual C++ 5.0 it's impossible to access any
of the Macros defined in <S.h>
Up to now I encountered problems with the follwoing macros (I'm sure
there are some more problems to follow, if I tried other mcros):
S_alloc(),
Calloc(),
PRINT_IT(),
MESSAGE(),
WARNING(), and
RECOVER().

The compiler alwas ends with the error: "Too many arguments in function
xxx"

My include-section looks as follows:

# if defined DLL_LOAD
# include <windows.h>
BOOL __stdcall
DllMain (HINSTANCE hDllInstance, DWORD dwReason, LPVOID lpReserved) {
 switch (dwReason) {
 case DLL_PROCESS_ATTACH:
  break;
 case DLL_PROCESS_DETACH:
  break;
 }
 return(TRUE);
}
#endif
# include <S.h>
# include <newredef.h>
# include <math.h>
# include <string.h>
# include <stdlib.h>


-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

<Prev in Thread] Current Thread [Next in Thread>