Skip to content

FUNCTION_NQ


Intrinsic define (macro string) set by the compiler

Syntax

` FUNCTION_NQ

`

Description

Substituted with the non-quoted name of the current function block where used.

If __FUNCTION_NQ__ is used at the module level, the function name given will be __FB_MAINPROC__ for the main module, or __FB_MODLEVELPROC__ for a different module. This is not the actual function name though, so it's not as useful there.

Examples

start GeSHi

vb
Sub MySub
  Print "Address of " + __FUNCTION__ + " is ";
  Print Hex( @__FUNCTION_NQ__ )
End Sub

MySub

end GeSHi

Address of MYSUB is 4012D0

Differences from QB

  • Did not exist in QB

See also

  • __FILE_NQ__
  • __FUNCTION__
  • __LINE__

Back to DocToc

Translated from FreeBASIC official docs. Contact us for removal if infringed.
FreeBASIC is an open-source project, not affiliated with Microsoft