__64__ define use to detect building for 64 bits when using Microsoft C compiler

This commit is contained in:
Antonio Linares
2005-04-29 05:04:48 +00:00
parent 0763b8d8b8
commit 8cbbdda5a0

View File

@@ -137,13 +137,27 @@ extern void HB_EXPORT hb_vmProcessSymbols( PHB_SYMB pSymbols, USHORT uiSymbols )
#define HB_INIT_SYMBOLS_BEGIN( func ) \
static HB_SYMB symbols[] = {
#define HB_INIT_SYMBOLS_END( func ) }; \
static int func( void ) \
{ \
hb_vmProcessSymbols( symbols, sizeof( symbols ) / sizeof( HB_SYMB ) ); \
return 1; \
}
#ifndef __64__
#define HB_INIT_SYMBOLS_END( func ) }; \
static int func( void ) \
{ \
hb_vmProcessSymbols( symbols, sizeof( symbols ) / sizeof( HB_SYMB ) ); \
return 1; \
}
#else
#define HB_INIT_SYMBOLS_END( func ) }; \
static int func( void ) \
{ \
hb_vmProcessSymbols( symbols, sizeof( symbols ) / sizeof( HB_SYMB ) ); \
return 1; \
} \
static int static_int_##func = func();
#endif
#define HB_CALL_ON_STARTUP_BEGIN( func ) \
static int func( void ) {