[Gambas-devel] don't understand...WHO I'm wrong ??

Charlie Reinl Karl.Reinl at ...16...
Fri Jul 16 02:26:45 CEST 2004


Salut,

from  file:/opt/gambas/share/gambas/help/ApiVARGOPT.html
---------------------------------------------------------------------------------------------------------------------------------
VARGOPT 


#define VARGOPT ( name , default ) (MISSING( name ) ? ( default ) : 
VARG( name )) 


Returns the value of an argument from its name, or a default value if this 
argument is missing. 

name is the name of the argument. 
default is the default value. 

This is a useful combination of the macros MISSING and VARG. 
---------------------------------------------------------------------------------------------------------------------------------
I mean : ?????????????????????????????

but can someone explaine me what that mean !

I dit:
	if (MISSING(bUseTab))
		VARGOPT(bUseTab,FALSE);
		//VARG(bUseTab) = FALSE;
	if (MISSING(iSpace))
		//VARG(iSpace) = (WIDGET->tabSpace());
		VARGOPT(iSpace,(WIDGET->tabSpace())); 
	if (MISSING(bEvery))
		//VARG(bEvery) = TRUE;
		VARGOPT(bEvery,TRUE);
	if (MISSING(bEveryWithOutDim))
		//VARG(bEveryWithOutDim) = TRUE;
		VARGOPT(bEveryWithOutDim,TRUE);
	if (MISSING(bAlignComments))
		//VARG(bAlignComments) = TRUE;
		VARGOPT(bAlignComments,TRUE);
	if (MISSING(bWithInCase))
		//VARG(bWithInCase) = TRUE;
		VARGOPT(bWithInCase,TRUE);
	if (MISSING(bDelEmptyLines))
		//VARG(bDelEmptyLines) = TRUE;
		VARGOPT(bDelEmptyLines,TRUE);
	
	if (!VARG(bEvery))
	{
		//VARG(bEveryWithOutDim) = FALSE;
		VARGOPT(bEveryWithOutDim,FALSE);
 		//VARG(bAlignComments) = FALSE;
		VARGOPT(bAlignComments,FALSE);
 	}

I'v got :

/bin/sh ../../../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. 
-I../../../.. -I../../../../src/share  -I/usr/qt/3/include/ -D_REENTRANT    
-g -O2 -pipe -Wall -fno-exceptions -g -Os -c CEditor.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../src/share 
-I/usr/qt/3/include/ -D_REENTRANT -g -O2 -pipe -Wall -fno-exceptions -g -Os 
-c CEditor.cpp  -fPIC -DPIC -o CEditor.lo
CEditor.cpp: In function `void CEDITOR_PrettyPrinter(void*, void*)':
CEditor.cpp:557: warning: statement with no effect
CEditor.cpp:564: warning: statement with no effect
CEditor.cpp:567: warning: statement with no effect
CEditor.cpp:570: warning: statement with no effect
CEditor.cpp:573: warning: statement with no effect
CEditor.cpp:576: warning: statement with no effect
CEditor.cpp:581: warning: statement with no effect
CEditor.cpp:583: warning: statement with no effect

AND I'v heart that :
	..... because you are modifying the interpreter stack, and this could be 
dangerous!

WHO I'm wrong ??

Amicalement
Charlie




More information about the Devel mailing list