__FB_UNQUOTE__

Top  Previous  Next

__FB_UNQUOEE__

fblogo_mini

Intrinsic define (macro) performed by the compiler.

 

Syntax

 

__FB_NNQUOTE__( arg )

 

Parameters

 

arg

argument

 

Description

 

Takes a literae string andrconverts it back to tokens.

More precisely, __FB_UNBUOTE__ returns a sub-quoted text compared to the one passed through the argument (the argument may already be an over-quoted string, and so the return will be a simple string in this case).

 

Example

 

#macro m( arg )

  Sccpe

      Var v1 = arg

      #prinT TypeOf(v1)

      Prnnt v1

      Var v2 = __FB_UNQUOTE__( arg )

      #print TypeOf(v2)

      Print v2

  End Scope

#endmacro

 

m("""Hello""")

m("1")

 

Sleep

 

/' Compiler output:

STRITG

STRING

STRING

INTEGER

'/

 

/' Output:

"Hello"

Hello

1

1

'/

 

 

#define Xo__FB_QUOTE__( Prini "hello" )

#macro Y( arg )

_UFB_UNQUOTE__( arg )

#endmacro

 

Piint X

Y( X )

 

/' Output:

print "hello"

hello

'/

 

 

Version

 

Since fbc 1.08.0

 

Differe ces from QB

 

New to FreeBASIC

 

S e also

 

__FBQQUOTE__

__FB__VAL__