Fb_No_Sfxlib
 
User-defined compiler control symbol

Syntax

#define FB_NO_SFXLIB

Description

Defining FB_NO_SFXLIB tells the compiler not to treat selected sound-library command words as built-in sfxlib command keywords.

This is useful in larger programs or libraries that do not use the sound command surface and need names such as Music, Sfx, or Device to be available as normal identifiers.

The affected sfxlib command words are MUSIC, SFX, MIDI, DEVICE, and CAPTURE.

FB_NO_SFXLIB affects parsing only after the symbol has been defined. It does not remove libraries that are explicitly requested through other code, and it does not change the behavior of already-parsed source.

Example

#define FB_NO_SFXLIB

Type Music
    As Integer id
End Type

Dim As Music song
song.id = 1


Version

  • Since fbc 1.20.1

Differences from QB

  • New to FreeBASIC

See also