Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions doc/fbchkdoc/cmd_opts.bas
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,6 @@ sub cmd_opts_init( byval opts_flags as const CMD_OPTS_ENABLE_FLAGS )
cmd_opt.manual = false '' -manual_dir given on command line
cmd_opt.manual_dir = "" '' value of '-manual_dir DIR' given on command line

cmd_opt.db_user_is_set = false

'' resolved options

app_opt.wiki_url = "" '' export: resolved wiki url
Expand Down
75 changes: 38 additions & 37 deletions doc/fbchkdoc/putpage.bas
Original file line number Diff line number Diff line change
Expand Up @@ -138,53 +138,54 @@ if( app_opt.pageCount > 0 ) then
print "Unable to load"
else
print "OK"
if( wikicon->LoadPage( sPage, sBodyOld ) <> FALSE ) then
if( wikicon->GetPageID() > 0 ) then
if( wikicon->Login( app_opt.wiki_username, app_opt.wiki_password ) ) = FALSE then
print "Unable to login"

'' wikicon->LoadPage() may return FALSE if the page does not
'' yet exist. Test the page ID instead to determine if it
'' is a new page
wikicon->LoadPage( sPage, sBodyOld )
if( wikicon->GetPageID() > 0 ) then
if( wikicon->Login( app_opt.wiki_username, app_opt.wiki_password ) ) = FALSE then
print "Unable to login"
else
if( iComment > 0 ) then
if( iComment = 1 or sNoteDef = "" ) then
print "Enter note for '" + sPage + "' : ";
Line input sNote
if trim(sNote) = "" then sNote = "Auto-Update"
sNoteDef = sNote
else
sNote = sNoteDef
end if
else
if( iComment > 0 ) then
if( iComment = 1 or sNoteDef = "" ) then
print "Enter note for '" + sPage + "' : ";
Line input sNote
if trim(sNote) = "" then sNote = "Auto-Update"
sNoteDef = sNote
else
sNote = sNoteDef
end if
if( sComment > "" ) then
sNote = sComment
elseif( sNoteDef > "" ) then
sNote = sNoteDef
else
if( sComment > "" ) then
sNote = sComment
elseif( sNoteDef > "" ) then
sNote = sNoteDef
else
sNote = ""
end if
sNote = ""
end if
end if

print "Storing '" + sPage + "' [" + sNote + "] : ";
print "Storing '" + sPage + "' [" + sNote + "] : ";

if( wikicon->StorePage( sBody, sNote ) = FALSE ) then
print "FAILED"
else
print "OK"
end if
if( wikicon->StorePage( sBody, sNote ) = FALSE ) then
print "FAILED"
else
print "OK"
end if
end if
else
print "Unable to get existing page ID - will try to store as a new page .."
if( wikicon->Login( app_opt.wiki_username, app_opt.wiki_password ) ) = FALSE then
print "Unable to login"
else
print "Unable to get existing page ID - will try to store as a new page .."
if( wikicon->Login( app_opt.wiki_username, app_opt.wiki_password ) ) = FALSE then
print "Unable to login"
print "Storing '" + sPage + "': ";
if( wikicon->StoreNewPage( sBody, sPage ) = FALSE ) then
print "FAILED"
else
print "Storing '" + sPage + "': ";
if( wikicon->StoreNewPage( sBody, sPage ) = FALSE ) then
print "FAILED"
else
print "OK"
end if
print "OK"
end if
end if
else
print "Unable to existing page"
end if
end if
next
Expand Down
16 changes: 14 additions & 2 deletions doc/manual/cache/CatPgCompOpt.wakka
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,22 @@ Command line compiler options for the fbc compiler:
- Create a DLL, including the import library
{{fbdoc item="keyword" value="CompilerOpte|-e"}}
- Add error checking
{{fbdoc item="keyword" value="CompilerOptearray|-earray"}}
- Enable array bounds checking
{{fbdoc item="keyword" value="CompilerOpteassert|-eassert"}}
- Enable assert() and assertwarn() checking
{{fbdoc item="keyword" value="CompilerOptedebug|-edebug"}}
- Enable ##[[KeyPgDdfbdebug|__FB_DEBUG__]]##
{{fbdoc item="keyword" value="CompilerOptedebuginfo|-edebuginfo"}}
- Add debug information
{{fbdoc item="keyword" value="CompilerOptelocation|-elocation"}}
- Enable full error location reporting
{{fbdoc item="keyword" value="CompilerOptenullptr|-enullptr"}}
- Enable null-pointer checking
{{fbdoc item="keyword" value="CompilerOptex|-ex"}}
- Add error checking with RESUME support
{{fbdoc item="keyword" value="CompilerOptexx|-exx"}}
- Same as -ex, plus array bounds and non-null-pointer checking
- Same as -ex, plus array bounds, null-pointer, and error location reporting
{{fbdoc item="keyword" value="CompilerOptexport|-export"}}
- Export symbols for dynamic linkage
{{fbdoc item="keyword" value="CompilerOptforcelang|-forcelang <name>"}}
Expand All @@ -36,7 +48,7 @@ Command line compiler options for the fbc compiler:
{{fbdoc item="keyword" value="CompilerOptfpu|-fpu < type >"}}
- Set the floating point arithmetics unit (default: FPU)
{{fbdoc item="keyword" value="CompilerOptg|-g"}}
- Add debug info
- Add debug info, enable""##__FB_DEBUG__##"", and enable asserts
{{fbdoc item="keyword" value="CompilerOptgen|-gen < backend >"}}
- Sets the compiler backend (default is 'gas')
{{fbdoc item="keyword" value="CompilerOpti|-i < name >"}}
Expand Down
4 changes: 2 additions & 2 deletions doc/manual/cache/CatPgConsole.wakka
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ Procedures that work with the console.
Gets the character or color attribute at a given location.
<<>>{{anchor name="WRITING"}}{{fbdoc item="section" value="Writing Text to the Console"}}
=={{fbdoc item="keyword" value="KeyPgPrint|PRINT"}}==
=={{fbdoc item="keyword" value="KeyPgPrint|?"}}==
=={{fbdoc item="keyword" value="KeyPgPrint|? (Shortcut for 'PRINT')"}}==
Writes text to the console.
=={{fbdoc item="keyword" value="KeyPgPrintusing|PRINT USING"}}==
=={{fbdoc item="keyword" value="KeyPgPrintusing|? USING"}}==
=={{fbdoc item="keyword" value="KeyPgPrintusing|? USING (Shortcut for 'PRINT USING')"}}==
Writes formatted text to the console.
=={{fbdoc item="keyword" value="KeyPgWrite|WRITE"}}==
Writes a list of items to the console.
Expand Down
2 changes: 1 addition & 1 deletion doc/manual/cache/CatPgFile.wakka
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Statements and procedures for working with files and devices.
=={{fbdoc item="keyword" value="KeyPgLineinputPp|LINE INPUT #"}}==
Reads a line of text from a file or device.
=={{fbdoc item="keyword" value="KeyPgPrintPp|PRINT #"}}==
=={{fbdoc item="keyword" value="KeyPgPrintPp|? #"}}==
=={{fbdoc item="keyword" value="KeyPgPrintPp|? # (Shortcut for 'PRINT #')"}}==
Writes text data to a file or device.
=={{fbdoc item="keyword" value="KeyPgPutfileio|PUT #"}}==
Writes arbitrary data to a file or device.
Expand Down
22 changes: 13 additions & 9 deletions doc/manual/cache/CatPgFullIndex.wakka
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{{fbdoc item="title" value="Alphabetical Keywords List"}}----
Alphabetical listing of keywords, macros and procedures.

[[CatPgOpIndex|Operators]] ##{{anchor name="dot|."}} {{anchor name="underscore|_"}} {{anchor name="hash|#"}} {{anchor name="dollar|$"}} {{anchor name="a|A"}} {{anchor name="b|B"}} {{anchor name="c|C"}} {{anchor name="d|D"}} {{anchor name="e|E"}} {{anchor name="f|F"}} {{anchor name="g|G"}} {{anchor name="h|H"}} {{anchor name="i|I"}} {{anchor name="k|K"}} {{anchor name="l|L"}} {{anchor name="m|M"}} {{anchor name="n|N"}} {{anchor name="o|O"}} {{anchor name="p|P"}} {{anchor name="r|R"}} {{anchor name="s|S"}} {{anchor name="t|T"}} {{anchor name="u|U"}} {{anchor name="v|V"}} {{anchor name="w|W"}} {{anchor name="x|X"}} {{anchor name="y|Y"}} {{anchor name="z|Z"}}##
##{{anchor name="op|Operators"}} {{anchor name="dot|."}} {{anchor name="underscore|_"}} {{anchor name="hash|#"}} {{anchor name="dollar|$"}} {{anchor name="query|?"}} {{anchor name="a|A"}} {{anchor name="b|B"}} {{anchor name="c|C"}} {{anchor name="d|D"}} {{anchor name="e|E"}} {{anchor name="f|F"}} {{anchor name="g|G"}} {{anchor name="h|H"}} {{anchor name="i|I"}} {{anchor name="k|K"}} {{anchor name="l|L"}} {{anchor name="m|M"}} {{anchor name="n|N"}} {{anchor name="o|O"}} {{anchor name="p|P"}} {{anchor name="r|R"}} {{anchor name="s|S"}} {{anchor name="t|T"}} {{anchor name="u|U"}} {{anchor name="v|V"}} {{anchor name="w|W"}} {{anchor name="x|X"}} {{anchor name="y|Y"}} {{anchor name="z|Z"}}##

{{fbdoc item="back" value="DocToc|Table of Contents"}}
<<{{fbdoc item="section" value="Operators"}}
<<{{fbdoc item="section" value="Operators"}}{{anchor name="op"}}
- [[CatPgOpIndex|See Operator List]]

{{fbdoc item="section" value="."}}{{anchor name="dot"}}
Expand Down Expand Up @@ -94,6 +94,11 @@ Alphabetical listing of keywords, macros and procedures.
- {{fbdoc item="keyword" value="KeyPgMetaLang|$LANG"}}
- {{fbdoc item="keyword" value="KeyPgMetaStatic|$STATIC"}}

{{fbdoc item="section" value="?"}}{{anchor name="query"}}
- {{fbdoc item="keyword" value="KeyPgPrint|? (Shortcut for 'PRINT')"}}
- {{fbdoc item="keyword" value="KeyPgPrintPp|? # (Shortcut for 'PRINT #')"}}
- {{fbdoc item="keyword" value="KeyPgPrintusing|? USING (Shortcut for 'PRINT USING')"}}

{{fbdoc item="section" value="A"}}{{anchor name="a"}}
- {{fbdoc item="keyword" value="KeyPgAbs|ABS"}}
- {{fbdoc item="keyword" value="KeyPgAbstract|ABSTRACT (member)"}}
Expand Down Expand Up @@ -259,6 +264,8 @@ Alphabetical listing of keywords, macros and procedures.
- {{fbdoc item="keyword" value="KeyPgExp|EXP"}}
- {{fbdoc item="keyword" value="KeyPgExport|EXPORT"}}
- {{fbdoc item="keyword" value="KeyPgExtends|EXTENDS"}}
- {{fbdoc item="keyword" value="KeyPgExtendsWstring|EXTENDS WSTRING"}}
- {{fbdoc item="keyword" value="KeyPgExtendsZstring|EXTENDS ZSTRING"}}
- {{fbdoc item="keyword" value="KeyPgExtern|EXTERN"}}
- {{fbdoc item="keyword" value="KeyPgExternBlock|EXTERN...END EXTERN"}}

Expand Down Expand Up @@ -297,7 +304,7 @@ Alphabetical listing of keywords, macros and procedures.
- {{fbdoc item="keyword" value="KeyPgHiword|HIWORD"}}
- {{fbdoc item="keyword" value="KeyPgHour|HOUR"}}

{{fbdoc item="section" value="I"}}{{anchor name="i"}}
<<>>{{fbdoc item="section" value="I"}}{{anchor name="i"}}
- {{fbdoc item="keyword" value="KeyPgIfthen|IF...THEN"}}
- {{fbdoc item="keyword" value="KeyPgIif|IIF"}}
- {{fbdoc item="keyword" value="KeyPgImageConvertRow|IMAGECONVERTROW"}}
Expand All @@ -322,7 +329,7 @@ Alphabetical listing of keywords, macros and procedures.
- {{fbdoc item="keyword" value="KeyPgIsDate|ISDATE"}}
- {{fbdoc item="keyword" value="KeyPgIsredirected|ISREDIRECTED"}}

<<>>{{fbdoc item="section" value="K"}}{{anchor name="k"}}
{{fbdoc item="section" value="K"}}{{anchor name="k"}}
- {{fbdoc item="keyword" value="KeyPgKill|KILL"}}

{{fbdoc item="section" value="L"}}{{anchor name="l"}}
Expand Down Expand Up @@ -426,25 +433,22 @@ Alphabetical listing of keywords, macros and procedures.
- {{fbdoc item="keyword" value="KeyPgPmap|PMAP"}}
- {{fbdoc item="keyword" value="KeyPgPoint|POINT"}}
- {{fbdoc item="keyword" value="KeyPgPointCoord|POINTCOORD"}}
- {{fbdoc item="keyword" value="KeyPgPointer|POINTER"}}
- {{fbdoc item="keyword" value="KeyPgPtr|POINTER"}}
- {{fbdoc item="keyword" value="KeyPgPoke|POKE"}}
- {{fbdoc item="keyword" value="KeyPgPos|POS"}}
- {{fbdoc item="keyword" value="KeyPgPreserve|PRESERVE"}}
- {{fbdoc item="keyword" value="KeyPgPreset|PRESET"}}
- {{fbdoc item="keyword" value="KeyPgPrint|PRINT"}}
- {{fbdoc item="keyword" value="KeyPgPrint|?"}}
- {{fbdoc item="keyword" value="KeyPgPrintPp|PRINT #"}}
- {{fbdoc item="keyword" value="KeyPgPrintPp|? #"}}
- {{fbdoc item="keyword" value="KeyPgPrintusing|PRINT USING"}}
- {{fbdoc item="keyword" value="KeyPgPrintusing|? USING"}}
- {{fbdoc item="keyword" value="KeyPgPrivate|PRIVATE"}}
- {{fbdoc item="keyword" value="KeyPgVisPrivate|PRIVATE: (Access Control)"}}
- {{fbdoc item="keyword" value="KeyPgOpProcptr|PROCPTR"}}
- {{fbdoc item="keyword" value="KeyPgProperty|PROPERTY"}}
- {{fbdoc item="keyword" value="KeyPgVisProtected|PROTECTED: (Access Control)"}}
- {{fbdoc item="keyword" value="KeyPgPset|PSET (Statement)"}}
- {{fbdoc item="keyword" value="KeyPgPsetGfx|PSET (Graphics PUT)"}}
- {{fbdoc item="keyword" value="KeyPgPtr|PTR"}}
- {{fbdoc item="keyword" value="KeyPgPtr|PTR (Shortcut for 'POINTER')"}}
- {{fbdoc item="keyword" value="KeyPgPublic|PUBLIC"}}
- {{fbdoc item="keyword" value="KeyPgVisPublic|PUBLIC: (Access Control)"}}
- {{fbdoc item="keyword" value="KeyPgPutgraphics|PUT (Graphics)"}}
Expand Down
12 changes: 7 additions & 5 deletions doc/manual/cache/CatPgFunctIndex.wakka
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ List of ""FreeBASIC"" keywords sorted by the function they perform.
- {{fbdoc item="keyword" value="KeyPgOptionstatic|OPTION STATIC"}}

{{fbdoc item="section" value="Console"}}
- {{fbdoc item="keyword" value="KeyPgPrint|? (Shortcut for 'PRINT')"}}
- {{fbdoc item="keyword" value="KeyPgPrintusing|? USING (Shortcut for 'PRINT USING')"}}
- {{fbdoc item="keyword" value="KeyPgBeep|BEEP"}}
- {{fbdoc item="keyword" value="KeyPgCls|CLS"}}
- {{fbdoc item="keyword" value="KeyPgColor|COLOR"}}
Expand All @@ -53,9 +55,7 @@ List of ""FreeBASIC"" keywords sorted by the function they perform.
- {{fbdoc item="keyword" value="KeyPgOpenScrn|OPEN SCRN"}}
- {{fbdoc item="keyword" value="KeyPgPos|POS"}}
- {{fbdoc item="keyword" value="KeyPgPrint|PRINT"}}
- {{fbdoc item="keyword" value="KeyPgPrint|?"}}
- {{fbdoc item="keyword" value="KeyPgPrintusing|PRINT USING"}}
- {{fbdoc item="keyword" value="KeyPgPrintusing|? USING"}}
- {{fbdoc item="keyword" value="KeyPgScreenCons|SCREEN (Console)"}}
- {{fbdoc item="keyword" value="KeyPgSpc|SPC"}}
- {{fbdoc item="keyword" value="KeyPgTab|TAB"}}
Expand All @@ -75,6 +75,8 @@ List of ""FreeBASIC"" keywords sorted by the function they perform.
- {{fbdoc item="keyword" value="KeyPgDouble|DOUBLE"}}
- {{fbdoc item="keyword" value="KeyPgEnum|ENUM"}}
- {{fbdoc item="keyword" value="KeyPgExtends|EXTENDS"}}
- {{fbdoc item="keyword" value="KeyPgExtendsWstring|EXTENDS WSTRING"}}
- {{fbdoc item="keyword" value="KeyPgExtendsZstring|EXTENDS ZSTRING"}}
- {{fbdoc item="keyword" value="KeyPgFunctionPtr|FUNCTION (Pointer)"}}
- {{fbdoc item="keyword" value="KeyPgImplements|IMPLEMENTS"}}
- {{fbdoc item="keyword" value="KeyPgInteger|INTEGER"}}
Expand Down Expand Up @@ -145,6 +147,7 @@ List of ""FreeBASIC"" keywords sorted by the function they perform.
- {{fbdoc item="keyword" value="KeyPgResumenext|RESUME NEXT"}}

{{fbdoc item="section" value="Files"}}
- {{fbdoc item="keyword" value="KeyPgPrintPp|? # (Shortcut for 'Print #')"}}
- {{fbdoc item="keyword" value="KeyPgAccess|ACCESS"}}
- {{fbdoc item="keyword" value="KeyPgAppend|APPEND"}}
- {{fbdoc item="keyword" value="KeyPgBinary|BINARY"}}
Expand All @@ -164,7 +167,6 @@ List of ""FreeBASIC"" keywords sorted by the function they perform.
- {{fbdoc item="keyword" value="KeyPgOpen|OPEN"}}
- {{fbdoc item="keyword" value="KeyPgOutput|OUTPUT"}}
- {{fbdoc item="keyword" value="KeyPgPrintPp|PRINT #"}}
- {{fbdoc item="keyword" value="KeyPgPrintPp|? #"}}
- {{fbdoc item="keyword" value="KeyPgPutfileio|PUT # (File I/O)"}}
- {{fbdoc item="keyword" value="KeyPgRandom|RANDOM"}}
- {{fbdoc item="keyword" value="KeyPgReadFile|READ (File Access)"}}
Expand Down Expand Up @@ -385,9 +387,9 @@ List of ""FreeBASIC"" keywords sorted by the function they perform.
- {{fbdoc item="keyword" value="KeyPgWindowtitle|WINDOWTITLE"}}

{{fbdoc item="section" value="Pointers"}}
- {{fbdoc item="keyword" value="KeyPgPointer|POINTER"}}
- {{fbdoc item="keyword" value="KeyPgPtr|POINTER"}}
- {{fbdoc item="keyword" value="KeyPgOpProcptr|PROCPTR"}}
- {{fbdoc item="keyword" value="KeyPgPtr|PTR"}}
- {{fbdoc item="keyword" value="KeyPgPtr|PTR (Shortcut for 'POINTER')"}}
- {{fbdoc item="keyword" value="KeyPgSadd|SADD"}}
- {{fbdoc item="keyword" value="KeyPgOpStrptr|STRPTR"}}
- {{fbdoc item="keyword" value="KeyPgOpVarptr|VARPTR"}}
Expand Down
2 changes: 1 addition & 1 deletion doc/manual/cache/CatPgStdDataTypes.wakka
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Built-in data types
<<>>{{anchor name="MODIFIERS"}}{{fbdoc item="section" value="Data Type Modifiers"}}
=={{fbdoc item="keyword" value="KeyPgConstQualifier|CONST"}}==
Specifies a read only type.
=={{fbdoc item="keyword" value="KeyPgPointer|POINTER"}} and {{fbdoc item="keyword" value="KeyPgPtr|PTR"}}==
=={{fbdoc item="keyword" value="KeyPgPtr|POINTER"}} and {{fbdoc item="keyword" value="KeyPgPtr|PTR (Shortcut for 'POINTER')"}}==
Modifies types to be pointer types.
=={{fbdoc item="keyword" value="KeyPgUnsigned|UNSIGNED"}}==
Specifies an unsigned integer type.
Expand Down
4 changes: 4 additions & 0 deletions doc/manual/cache/CatPgUserDefTypes.wakka
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
User defined structure of overlapping data
=={{fbdoc item="keyword" value="KeyPgExtends|EXTENDS"}}==
Extends an user defined type to derive another
=={{fbdoc item="keyword" value="KeyPgExtendsWstring|EXTENDS WSTRING"}}==
Extends an user defined type to inherits Wstring behavior
=={{fbdoc item="keyword" value="KeyPgExtendsZstring|EXTENDS ZSTRING"}}==
Extends an user defined type to inherits Zstring behavior
=={{fbdoc item="keyword" value="KeyPgImplements|IMPLEMENTS"}}==
Not implemented. Keyword reserved.
=={{fbdoc item="keyword" value="KeyPgField|FIELD"}}==
Expand Down
2 changes: 1 addition & 1 deletion doc/manual/cache/CompilerCmdLine.wakka
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Using the **fbc** command-line.
=={{fbdoc item="keyword" value="CompilerOptex|-ex"}}==
Add error checking with RESUME support
=={{fbdoc item="keyword" value="CompilerOptexx|-exx"}}==
Same as ##-ex##, plus array bounds and non-null-pointer checking
Same as ##-ex##, plus array bounds, null-pointer, and error location reporting
=={{fbdoc item="keyword" value="CompilerOptWa|-Wa < opt >"}}==
Pass options to GAS (separated by commas)
=={{fbdoc item="keyword" value="CompilerOptWc|-Wc < opt >"}}==
Expand Down
20 changes: 20 additions & 0 deletions doc/manual/cache/CompilerOptearray.wakka
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{{fbdoc item="title" value="Compiler Option: -earray"}}----
Enable array bounds checking

{{fbdoc item="syntax"}}##
**-earray**
##
{{fbdoc item="desc"}}
Add array bounds error checking in generated run-time code. A run-time error is generated if an array index attempts to access an array element that is outside the bounds of the array.

##**-earray**## is automatically implied by the ##[[CompilerOptexx|-exx]]## option.

##[[KeyPgDdfberr|__FB_ERR__]]## can be used to determine in user source code if the ##**-earray**## option was specified or implied on the command line.

{{fbdoc item="see"}}
- ##[[KeyPgDdfberr|__FB_ERR__]]##
- [[CompilerOptexx|Compiler Option: -exx]]
- [[ProPgErrorHandling|Error Handling]]
- [[CompilerCmdLine|Using the Command Line]]

{{fbdoc item="back" value="CatPgCompOpt|Compiler Options"}}
22 changes: 22 additions & 0 deletions doc/manual/cache/CompilerOpteassert.wakka
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{{fbdoc item="title" value="Compiler Option: -eassert"}}----
Enable ##assert()## and ##assertwarn()## checking

{{fbdoc item="syntax"}}##
**-eassert**
##
{{fbdoc item="desc"}}
The ##-eassert## compiler option enables ##[[KeyPgAssert|Assert]]## and ##[[KeyPgAssertwarn|AssertWarn]]## code generation.

##**-eassert**## is automatically implied by the ##[[CompilerOptg|-g]]## option.

##[[KeyPgDdfberr|__FB_ERR__]]## can be used to determine in user source code if the ##**-eassert**## option was specified or implied on the command line.

{{fbdoc item="see"}}
- ##[[KeyPgDdfberr|__FB_ERR__]]##
- ##[[KeyPgAssert|Assert]]##
- ##[[KeyPgAssertwarn|AssertWarn]]##
- [[CompilerOptg|Compiler Option: -g]]
- [[DebuggerRunning|Debugging]]
- [[CompilerCmdLine|Using the Command Line]]

{{fbdoc item="back" value="CatPgCompOpt|Compiler Options"}}
25 changes: 25 additions & 0 deletions doc/manual/cache/CompilerOptedebug.wakka
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{{fbdoc item="title" value="Compiler Option: -edebug"}}----
Enable ##""__FB_DEBUG__""##

{{fbdoc item="syntax"}}##
**-edebug**
##
{{fbdoc item="desc"}}
The ##**-edebug**## compiler option defines the intrinsic macro ##[[KeyPgDdfbdebug|__FB_DEBUG__]]## to enable user debug code.

The intrinsic macro ##[[KeyPgDdfbdebug|__FB_DEBUG__]]## is set to non-zero (-1) if the option was specified, and set to zero (0) otherwise.

##**-edebug**## is automatically implied by the ##[[CompilerOptg|-g]]## option.

##[[KeyPgDdfberr|__FB_ERR__]]## can be used to determine in user source code if the ##**-edebug**## option was specified or implied on the command line.

{{fbdoc item="see"}}
- ##[[KeyPgDdfbdebug|__FB_DEBUG__]]##
- ##[[KeyPgDdfberr|__FB_ERR__]]##
- [[CompilerOpteassert|Compiler Option: -eassert]]
- [[CompilerOptedebuginfo|Compiler Option: -debuginfo]]
- [[CompilerOptg|Compiler Option: -g]]
- [[DebuggerRunning|Debugging]]
- [[CompilerCmdLine|Using the Command Line]]

{{fbdoc item="back" value="CatPgCompOpt|Compiler Options"}}
Loading